Skip to main content
Glama
Capture MCP Server

Capture MCP Server

by blen-labs

Lookup Reference Code

lookup_reference_code
Read-onlyIdempotent

Looks up the official FPDS definition for a procurement reference code, or lists all codes in a domain, so you can verify meanings before filtering or reporting.

Instructions

Look up the official FPDS description for a procurement reference code, or list a whole domain. Domains: set_aside, extent_competed, award_type, solicitation_procedure, competition. Use this BEFORE filtering or reporting on any code — e.g. set_aside 8A is '8(a) Competed' while 8AN is '8(a) Sole Source'. Static lookup: no API key, no network.

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": {
      "domain": "<domain>"
    },
    "name": "lookup_reference_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoThe code to look up (e.g. '8AN'). Omit to list every code in the domain.
domainYesCode domain: one of set_aside, extent_competed, award_type, solicitation_procedure, competition

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the tool could not do what was asked: a message, or an object with a stable `code` (bad_request, not_found, upstream_error, ...) and a `message`. The call is then marked isError.
warningsNoCaveats about this result, for example a filter the upstream did not honor.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv4.0.2
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "error": {
      +      "description": "Present when the tool could not do what was asked: a message, or an object with a stable `code` (bad_request, not_found, upstream_error, ...) and a `message`. The call is then marked isError.",
      +      "oneOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "additionalProperties": true,
      +          "properties": {
      +            "code": {
      +              "type": "string"
      +            },
      +            "message": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "code",
      +            "message"
      +          ],
      +          "type": "object"
      +        }
      +      ]
      +    },
      +    "warnings": {
      +      "description": "Caveats about this result, for example a filter the upstream did not honor.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Addedv1.0.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world, non-destructive; the description adds genuinely new context by stating 'Static lookup: no API key, no network', which tells the agent there is no auth setup, no rate-limit risk, and no dependency on a live FPDS endpoint. It does not say whether the code tables are versioned or fiscal-year specific, which is the one remaining behavioral unknown.

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?

Three short sentences, front-loaded with the action and followed by the domain list and the usage rationale. The domain list repeats the schema enum verbatim, which is the only wasted material; everything else earns its place.

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 and the annotations carry the safety profile, so the description only needs to convey purpose, scoping, and the domain choices — all present. For a simple static lookup this is essentially complete, with only data-currency/versioning unaddressed.

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%, so the baseline is 3, but the description adds meaning by showing that codes are short alphanumeric tokens whose literal value is misleading ('8A is 8(a) Competed while 8AN is 8(a) Sole Source'), which tells the agent not to infer semantics from the code string. The domain enumeration is duplicated from the schema, keeping it from 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 ('Look up the official FPDS description for a procurement reference code') plus a second mode ('list a whole domain'), and enumerates the exact domains. This is clearly distinguishable from the sibling tools, which are all spending/award-search tools rather than code dictionaries.

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

Usage Guidelines4/5

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

Gives explicit timing guidance — 'Use this BEFORE filtering or reporting on any code' — with a concrete motivating example (8A vs 8AN) that shows why guessing at code meanings is dangerous. No explicit when-not or named alternative tool is given, but no sibling plausibly substitutes for this lookup, so the gap is minor.

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