Skip to main content
Glama
TRORBOT MCP Server

TRORBOT MCP Server

by tonymon

Search policy and regulatory context

search_program_context
Read-onlyIdempotent

Searches a knowledge base of policy events, regulatory changes, and program context affecting federal receivables to explain why data trends or anomalies changed.

Instructions

Search the optional Context Events knowledge base for policy events, regulatory changes, and program context affecting federal receivables.

This KB holds summaries of publicly available sources about legislation (DCIA, DATA Act, Debt Collection Improvement Act), Treasury Financial Manual updates, program changes to Cross-Servicing, TOP (Treasury Offset Program), AWG, and CRS, and significant events that explain trends or anomalies in the receivables data.

Use this tool to explain WHY data changed, not just WHAT it shows. For example, after finding a compliance-rate drop with query_receivables, call this tool to find policy or operational context that explains the change.

Requires: TRORBOT_KB_BUCKET and AWS credentials. Returns: { passages: [{text, source, source_uri, relevance_score}], query, kb }

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": {
      "params": "<params>"
    },
    "name": "search_program_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsYesQuery and result-count options.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations (already declaring readOnly, idempotent, non-destructive, closed-world), the description adds prerequisites the annotations cannot convey: TRORBOT_KB_BUCKET and AWS credentials. Calling the KB 'optional' signals it may be absent or unconfigured, and the note that it holds summaries of *publicly available* sources sets an expectation about coverage limits. It also documents the response envelope, so the agent knows what comes back.

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?

Purpose is front-loaded in the first line, followed by scope, then usage, then requirements and return shape — a sensible order for an agent scanning top-down. It is somewhat long, and the acronym list contains a minor redundancy (DCIA is the Debt Collection Improvement Act, listed twice in expanded form), but no sentence is truly wasted.

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 search tool, the description covers purpose, scope of the corpus, when to invoke it relative to a sibling, environment prerequisites, and failure-relevant context ('optional' KB). With an output schema present and 100% param coverage, nothing an agent needs to select or invoke this tool correctly is missing.

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?

Schema description coverage is 100% — both query and max_results are documented in the schema with lengths, bounds, and defaults — so the baseline is 3. The description's guidance to search for policy/regulatory context after a data anomaly implies how to phrase queries, but adds no syntax or formatting detail beyond the schema itself.

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 ('Search') and resource ('the optional Context Events knowledge base') and enumerates the content types it holds (policy events, regulatory changes, program context, legislation summaries). It clearly separates itself from query_receivables by positioning itself as the 'why' layer rather than the data layer. The one gap is that it never contrasts itself with the closely-named sibling search_program_guidance, leaving an agent to guess which search to pick.

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 an explicit triggering condition ('Use this tool to explain WHY data changed, not just WHAT it shows') plus a concrete workflow example: after finding a compliance-rate drop with query_receivables, call this tool. That is real routing guidance rather than implied usage. It stops short of a 5 because there is no when-not guidance and no contrast with the similarly named search_program_guidance sibling.

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