Docs

Search G2X User Guide

Find a guide by task or topic. Use the arrow keys to choose a result.

Home
Docs home
Guides
  • Build with the G2X MCP server
  • Authentication
  • Tools and results
  • Errors and limits
  • Discovery files
  • Changelog
  1. Docs
  2. Tools and results

Tools and results

How to discover the G2X tools, read their results, get whole documents and follow analysis runs.

On this page
  • Discover the tools
  • Annotations
  • Results
  • Whole documents
  • Analysis runs
  • NAICS and PSC prefix filters

Discover the tools

After sign-in, tools/list returns every tool the account can use, with its input schema, output schema and annotations. Treat it as the source of truth: read it when you connect, and check the schema before you build arguments. Record IDs come from earlier results; never construct one.

The tools cover opportunity search across SAM, state and local, DIBBS and SBIR/STTR; contract, IDV, vehicle, protest, forecast and grant records; companies, their relationships and people; opportunity documents; federal supply items; events; and account actions for watchlists, saved searches, pipelines and CRM. For examples by task, see what you can ask. For each tool's purpose, inputs, outputs and an example prompt, see the GovCon MCP tool reference, which is generated from the running server.

Annotations

Each tool carries MCP annotations. A tool that only reads has readOnlyHint: true. A tool that can overwrite or remove something that already exists has destructiveHint: true; a tool that only adds has destructiveHint: false. openWorldHint: true marks a tool that reaches beyond the account's own data.

Results

Results come back as structured content with a readable summary. Records carry a link to the record in G2X. A list that continues returns a next_cursor; pass it back to get the next page. Every result carries provenance notes, and provisional is true when coverage is partial.

A tool that can't complete a call returns a result with isError: true and a message that says what to change.

Whole documents

Ask for the complete document in Markdown or JSON. A large document arrives in exact parts, each with a cursor to the next, along with the whole document's size and checksum, so you can check that nothing is missing. Keep the document's version and citations with anything you build from it.

Analysis runs

Starting a requirements extraction or a fit assessment returns a run ID. Poll g2x_get_analysis_run with that ID: an accepted run isn't a finished result. If a response is slow, resume with the same run ID instead of starting another run.

NAICS and PSC prefix filters

Exact classification codes are the default across MCP queries (six-digit NAICS such as 541512, four-character PSC such as DA10), except g2x_forecast_scan, which always accepts 2- to 6-digit numeric NAICS prefixes (no sector ranges) in naics_codes. Partial prefix and NAICS sector-range filtering rolls out progressively per server configuration; inspect tools/list to confirm each tool's current input schema. When prefix filtering is off, a partial NAICS code on other tools returns an input-validation error asking for a six-digit NAICS code, while a shorter PSC value (such as D or R4) is passed through as a literal exact match instead of expanding to child codes — which can return empty results unless you pass a full four-character PSC.

When prefix filtering is enabled, supported tools accept:

  • NAICS prefixes and sector ranges: 2- to 6-digit numeric prefixes (54, 541, 5415, 54151, 541512) and the three official Census two-digit sector ranges (31-33, 44-45, 48-49). Single-digit codes, codes longer than six digits, and non-Census hyphenated ranges (such as 54-55 or 31-34) are rejected.
  • PSC prefixes: 1- to 4-character alphanumeric prefixes (D, R4, DA1, DA10), normalized to uppercase and deduplicated. Hyphenated sector ranges apply only to NAICS, not PSC; symbols (such as D-10) and values longer than four characters are rejected when prefix validation is active.

Public MCP tools that pass prefix filters through (when enabled):

  • NAICS prefixes, NAICS sector ranges, and PSC prefixes: g2x_search_records (for supported contract, IDV, opportunity, and vehicle datasets) and g2x_query.
  • Always-on NAICS prefixes (2 to 6 digits, no sector ranges): g2x_forecast_scan accepts 2- to 6-digit numeric NAICS prefixes in naics_codes even when prefix filtering is off.
  • PSC prefixes: g2x_recompete_radar and g2x_expiring_awards also accept 1- to 4-character PSC inputs, which expand as prefixes once prefix filtering is active.

Tools that remain exact six-digit NAICS: g2x_search_opportunities, g2x_recompete_radar, g2x_company_contract_history, and g2x_teaming_partners enforce exact six-digit NAICS inputs in their tool schemas, and spending-pattern, competitive-metric, and individual code-title lookups also require exact six-digit NAICS codes. For code definitions and examples, see Look up NAICS codes and Look up Product and Service Codes.

PreviousAuthenticationNextErrors and limits

On this page

  • Discover the tools
  • Annotations
  • Results
  • Whole documents
  • Analysis runs
  • NAICS and PSC prefix filters

Share this guide