Skip to main content
Glama

Get opportunity details

get_opportunity
Read-onlyIdempotent

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

Pass the id from a search result. 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.

Input Schema

NameRequiredDescriptionDefault
idYesThe id field of a search result.

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. 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"
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantially more: the 2000-character truncation of description, that AI notes are optional ('when MatchAwards has them'), and a required labeling caveat for AI-generated text. It also specifies output presentation duties (markdown links for url/sam_url), which annotations cannot convey.

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 when-to-use sentence, followed by ordered operational notes (id provenance, return contents, AI labeling, link formatting, exclusions). Every sentence is actionable, though the formatting directive is a slight extension beyond core tool semantics.

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?

An output schema exists, yet the description still summarizes the payload and flags the AI-generated caveat, which is the one thing an agent could misuse. Combined with explicit routing to siblings, an agent has everything needed to call this correctly.

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 pattern is documented, so the description only needs to add value; it does by stating the id must come from a search result and giving a concrete example id. Marginal gain over the schema, so not a 5.

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 search result') and explicitly scopes what is returned (row, description up to 2000 chars, contacts, optional AI notes). It is clearly distinguishable from search_* and assess_opportunity because it retrieves a single known id rather than searching or evaluating.

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 an explicit trigger ('when the user wants the details of one search result, or who to contact about it'), explicit anti-triggers (not for searching, not for fit/bid questions, not for deeper contact details), and names the alternatives to use instead (search_contracts, search_grants, search_jobs, assess_opportunity).

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.