Skip to main content
Glama

Get opportunity details

get_opportunity
Read-onlyIdempotent

Use this when the user wants the details of one opportunity from a search, or who to contact about it.

Pass the id from a search_contracts, search_grants or search_jobs result; award ids (search_awards, get_company) are not opportunity ids. Returns the result's row plus its description (up to 2000 characters), published points of contact (name and title only) and, when MatchAwards has them, ai: AI-generated notes (subcontracting and large-prime angles) and a summary. AI text is AI-generated: label it as such whenever you quote it. Example: id="117402307943537453".

Print url, and sam_url for federal notices, as markdown links.

Do not use for searching (search_contracts, search_grants, search_jobs), for fit or bid/no-bid questions (assess_opportunity) or for contact details beyond the published names and titles.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "<id>"
    },
    "name": "get_opportunity"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesAn opportunity's id from a search result (the tool says which searches); not an award id (search_awards, get_company).

Output Schema

NameRequiredDescriptionDefault
aiNoAI-generated notes on this opportunity, or null. Label them as AI-generated when you show or quote them.
idYesPass to get_opportunity for the description and contacts.
urlNoThe posting on matchawards.com. Show it as a markdown link.
cityNo
noteNo
typeNofederal, state, grant or job.
as_ofNo
naicsNoOn state notices (type state) the naics code itself is AI-assigned.
stateNo
titleNo
agencyNo
officeNo
sam_urlNoThe SAM.gov notice (federal only). Show it as a markdown link.
contactsNoPublished points of contact; [] if none.
agency_idNoThe agency's MatchAwards id.
posted_atNoDate, YYYY-MM-DD.
set_asideNo
descriptionNoUp to 2000 characters.
matched_naicsNoOnly when you filtered by naics: the requested codes this record carries: its own code (in naics) or, for a grant or job, another code of its program or occupation.
ai_matched_naicsNoOnly when you filtered by naics: requested codes this contract notice matched only because MatchAwards' AI suggested them, not its own codes. Call such a match AI-suggested.
no_fixed_deadlineNotrue: the deadline is a placeholder date.
response_deadlineNoDate, YYYY-MM-DD; null if none.
solicitation_numberNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / id / description
      Previous value: -"The id field of a search result."New value: +"An opportunity's id from a search result (the tool says which searches); not an award id (search_awards, get_company)."
  2. Changed5 schema fields changed
    • addedOutput schema / $defs
      Added value: +{
      +  "AiNotes": {
      +    "description": "AI-generated notes MatchAwards wrote when it imported the notice. Every field is AI-generated text.",
      +    "properties": {
      +      "fit": {
      +        "anyOf": [
      +          {
      +            "maxLength": 1000,
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Who this opportunity suits.",
      +        "title": "Fit"
      +      },
      +      "large_prime": {
      +        "anyOf": [
      +          {
      +            "maxLength": 1000,
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Angles for large prime contractors.",
      +        "title": "Large Prime"
      +      },
      +      "reasoning": {
      +        "anyOf": [
      +          {
      +            "maxLength": 1000,
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Reasoning"
      +      },
      +      "subcontracting": {
      +        "anyOf": [
      +          {
      +            "maxLength": 1000,
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Angles for subcontractors.",
      +        "title": "Subcontracting"
      +      },
      +      "summary": {
      +        "anyOf": [
      +          {
      +            "$ref": "#/$defs/AiSummary"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      }
      +    },
      +    "title": "AiNotes",
      +    "type": "object"
      +  },
      +  "AiSummary": {
      +    "properties": {
      +      "nft_advantage": {
      +        "anyOf": [
      +          {
      +            "maxLength": 1000,
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Nft Advantage"
      +      },
      +      "nft_insight": {
      +        "anyOf": [
      +          {
      +            "maxLength": 1000,
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Nft Insight"
      +      },
      +      "nft_title": {
      +        "anyOf": [
      +          {
      +            "maxLength": 1000,
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Nft Title"
      +      }
      +    },
      +    "title": "AiSummary",
      +    "type": "object"
      +  },
      +  "Contact": {
      +    "properties": {
      +      "name": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Name"
      +      },
      +      "title": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Title"
      +      }
      +    },
      +    "title": "Contact",
      +    "type": "object"
      +  },
      +  "Naics": {
      +    "properties": {
      +      "code": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Code"
      +      },
      +      "title": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Title"
      +      }
      +    },
      +    "title": "Naics",
      +    "type": "object"
      +  }
      +}
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / properties
      Added value: +{
      +  "agency": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "title": "Agency"
      +  },
      +  "agency_id": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "description": "The agency's MatchAwards id.",
      +    "title": "Agency Id"
      +  },
      +  "ai": {
      +    "anyOf": [
      +      {
      +        "$ref": "#/$defs/AiNotes"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "description": "AI-generated notes on this opportunity, or null. Label them as AI-generated when you show or quote them."
      +  },
      +  "ai_matched_naics": {
      +    "anyOf": [
      +      {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "description": "Only when you filtered by naics: requested codes this contract notice matched only because MatchAwards' AI suggested them, not its own codes. Call such a match AI-suggested.",
      +    "title": "Ai Matched Naics"
      +  },
      +  "as_of": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "title": "As Of"
      +  },
      +  "city": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "title": "City"
      +  },
      +  "contacts": {
      +    "description": "Published points of contact; [] if none.",
      +    "items": {
      +      "$ref": "#/$defs/Contact"
      +    },
      +    "title": "Contacts",
      +    "type": "array"
      +  },
      +  "description": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "description": "Up to 2000 characters.",
      +    "title": "Description"
      +  },
      +  "id": {
      +    "description": "Pass to get_opportunity for the description and contacts.",
      +    "title": "Id",
      +    "type": "string"
      +  },
      +  "matched_naics": {
      +    "anyOf": [
      +      {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "description": "Only when you filtered by naics: the requested codes this record carries: its own code (in naics) or, for a grant or job, another code of its program or occupation.",
      +    "title": "Matched Naics"
      +  },
      +  "naics": {
      +    "anyOf": [
      +      {
      +        "$ref": "#/$defs/Naics"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "description": "On state notices (type state) the naics code itself is AI-assigned."
      +  },
      +  "no_fixed_deadline": {
      +    "anyOf": [
      +      {
      +        "type": "boolean"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "description": "true: the deadline is a placeholder date.",
      +    "title": "No Fixed Deadline"
      +  },
      +  "note": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "title": "Note"
      +  },
      +  "office": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "title": "Office"
      +  },
      +  "posted_at": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "description": "Date, YYYY-MM-DD.",
      +    "title": "Posted At"
      +  },
      +  "response_deadline": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "description": "Date, YYYY-MM-DD; null if none.",
      +    "title": "Response Deadline"
      +  },
      +  "sam_url": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "description": "The SAM.gov notice (federal only). Show it as a markdown link.",
      +    "title": "Sam Url"
      +  },
      +  "set_aside": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "title": "Set Aside"
      +  },
      +  "solicitation_number": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "title": "Solicitation Number"
      +  },
      +  "state": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "title": "State"
      +  },
      +  "title": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "title": "Title"
      +  },
      +  "type": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "description": "federal, state, grant or job.",
      +    "title": "Type"
      +  },
      +  "url": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "description": "The posting on matchawards.com. Show it as a markdown link.",
      +    "title": "Url"
      +  }
      +}
    • addedOutput schema / required
      Added value: +[
      +  "id"
      +]
    • changedOutput schema / title
      Previous value: -"get_opportunityDictOutput"New value: +"OpportunityDetail"
  3. First observed

TDQS

A4.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful behavior beyond that: the 2000-character description cap, that contacts are name/title only, that AI notes may be present and must be labeled when quoted, and a markdown-link formatting instruction for url/sam_url. That is solid added context, though it does not discuss error behavior for invalid ids.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the trigger condition, then the id provenance, then return contents, then exclusions. Every sentence carries information, though the formatting directive about markdown links sits slightly awkwardly mid-paragraph and could be grouped with the return-value sentence.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter read tool with an output schema, the description covers trigger, id provenance, return shape, AI-content caveats, and exclusions. An agent has everything needed to call it correctly and interpret the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema already documents the id pattern and its provenance, so the baseline is 3. The description goes further by naming the exact source tools (search_contracts, search_grants, search_jobs), warning that award ids from search_awards/get_company are invalid, and giving a concrete example value, which meaningfully reduces mis-invocation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('details of one opportunity') and immediately scopes it to a single record from a search result. It explicitly distinguishes itself from search tools and from assess_opportunity, so an agent can route correctly without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use ('user wants the details of one opportunity... or who to contact'), explicit when-not-to-use (searching, fit/bid-no-bid, deeper contact details), and names the alternative tool for each excluded case. Nothing is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.