Skip to main content
Glama

Build an evidence packet

build_evidence_packet
Read-onlyIdempotent

Collects the evidence relevant to a research question about NYC sidewalk injury, traffic accident, or residential landlord-tenant law as of a date: propositions, the statutes and cases behind them, sources, relationships, conflicts, limitations, and what was left out and why. Deterministic: the same question and dataset give the same packet_id. Every object carries a cite_as block (canonical URL + content hash). Check status first: INSUFFICIENT_EVIDENCE means the dataset does not cover the question.

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": {
      "question": "<question>"
    },
    "name": "build_evidence_packet"
  }
}

Input Schema

NameRequiredDescriptionDefault
as_ofNoDate the law should be applied as of (YYYY-MM-DD). Defaults to today.
topicsNoOptional topic IDs to include in addition to those matched from the question (see /topics)
questionYesA research question about the law, not about a particular person's case
jurisdictionNoJurisdiction to research. Parent jurisdictions (us-ny, us) are included automatically.us-ny-nyc

Output Schema

NameRequiredDescriptionDefault
urlYes
as_ofYes
casesYes
flagsYes
statusYes
sourcesYes
excludedYes
questionYes
conflictsYes
packet_idYes
provenanceYes
authoritiesYes
limitationsYes
jurisdictionYes
propositionsYes
relationshipsYes
interpretationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, and closed-world, and the description goes beyond them by disclosing determinism with a concrete consequence (same question and dataset yield the same packet_id), a provenance guarantee (every object carries a cite_as block with canonical URL and content hash), and the INSUFFICIENT_EVIDENCE status meaning. It lacks anything about cost, latency, or limits of the build, but the behavioral picture is otherwise strong.

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?

The purpose is front-loaded in the first sentence and the operational warnings (determinism, cite_as, INSUFFICIENT_EVIDENCE) follow in descending priority with no filler. The long content enumeration in the opening sentence makes it dense, but every element listed is information an agent would need.

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?

With an output schema present and annotations covering the safety profile, the description need not explain return values, and it still covers scope limits, determinism, provenance, and status semantics. The main remaining gap is how far jurisdiction and topic overrides expand the packet, which is relevant for a four-parameter research tool.

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%, so the schema already documents all four parameters, and the baseline of 3 applies. The description adds modest meaning: the 'as of a date' framing for the temporal parameter and the constraint that the question must be about the law rather than a person's case. It says nothing about how topics or jurisdiction alter the packet beyond what the schema states.

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?

The description opens with a specific verb ('Collects') and names the resource precisely: an evidence packet for a research question in three named legal domains as of a date, and it enumerates the packet's contents (propositions, statutes, cases, sources, relationships, conflicts, limitations, exclusions). That is far more than a restatement of the name. It stops short of 5 because it never names the sibling tools (get_evidence, search_evidence) or explains how a packet differs from simply fetching evidence.

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?

It supplies a scope constraint ('a research question about the law, not about a particular person's case') and a status-handling rule ('Check status first: INSUFFICIENT_EVIDENCE means the dataset does not cover the question'), which is real usage guidance. However, it never says when to reach for this tool versus the sibling search/get tools, so the alternative-selection decision 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.

Resources