Skip to main content
Glama
beholder-mcp

beholder-mcp

by rsivilli

get_related_contracts

Find related government contracts by PIID, including parent, sibling, same vehicle, and same awardee records, replacing manual NAICS, agency, and set-aside similarity searches.

Instructions

Given a contract PIID, find related contracts (parent, siblings, same vehicle, same awardee). Replaces the manual NAICS/agency/set-aside similarity search.

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": {
      "contract_id": "<contract_id>"
    },
    "name": "get_related_contracts"
  }
}

Input Schema

NameRequiredDescriptionDefault
contract_idYesContract PIID to find related contracts for

Output Schema

NameRequiredDescriptionDefault
contractsYesContracts related to the queried PIID
relation_labelYesLabel describing how these contracts relate to the source, e.g. 'Same Vehicle', 'Same Awardee'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the burden and does disclose the four relationship categories it traverses (parent, siblings, vehicle, awardee), which is real behavioral detail. It does not say whether results are ranked, capped, or empty when no relations exist, nor does it confirm read-only semantics beyond implication.

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

Conciseness5/5

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

Two compact sentences, zero filler, with the core action and the relationship enumeration front-loaded before the motivating use case.

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

Completeness4/5

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

An output schema exists, so return-shape explanation is unnecessary, and the relationship taxonomy gives an agent enough to decide to call it. The only missing piece is result-ordering or result-count behavior, which is minor for a single-parameter lookup.

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

Parameters3/5

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

Only one parameter and schema coverage is 100%, with the schema already describing it as a 'Contract PIID'. The description restates that it takes a PIID but adds no format, example, or error guidance beyond the schema.

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

Purpose4/5

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

States a specific verb and resource ('find related contracts') and enumerates the relationship types (parent, siblings, same vehicle, same awardee), which clearly separates it from a generic search_contracts or get_contract_detail call. It stops short of naming any sibling explicitly.

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

Usage Guidelines3/5

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

The closing sentence gives useful context about what it replaces (manual NAICS/agency/set-aside similarity search), implying when to reach for it. There is no explicit when-not-to-use guidance and no named alternative tool for plain keyword or filtered lookups.

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