Skip to main content
Glama

SEC EDGAR: filings, insider trades, 13F

Run an official-records plan

run_records_plan
Read-only

Runs a plan from plan_records_query (its plan_id) or explicit steps, all steps in parallel, under a hard max_usd: if the worst case could exceed it, nothing runs. Each step is charged to the caller's key exactly like a direct tool call (failed steps are free). Returns one section per step (via_tool, via_input, rows with source_url), a receipt and the citations. Reaches all 30 tools; to list them as MCP tools, add ?tools=all to the MCP URL.

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": {
      "max_usd": "<max_usd>"
    },
    "name": "run_records_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsNoExplicit steps instead of a plan_id: [{tool, input}], tool a name from GET /v1/tools (eu-tenders or search_eu_tenders), input that tool's input.
max_usdYesHard cap in USD: refused, nothing run, if the steps' worst case could cost more.
plan_idNoThe plan_id plan_records_query returned (or pass steps).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: parallel fan-out, all-or-nothing refusal under max_usd, per-step billing to the caller's key with failed steps free, and the shape of the response (per-step sections, receipt, citations). The cost/idempotency behavior also contextualizes the idempotentHint=false flag without contradicting the readOnly annotation.

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?

Dense and front-loaded — mode selection, cost gate, billing, then return shape. The closing note about ?tools=all is useful context but sits oddly in a tool description and slightly dilutes the front-loading.

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?

With no output schema, the description still specifies the return structure (one section per step with via_tool, via_input, rows with source_url, plus receipt and citations). Combined with the billing and cap semantics, an agent has everything needed to invoke it 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%, so the baseline is 3, but the description adds real semantics: the worst-case refusal rule for max_usd, the provenance of plan_id, and the fact that steps run in parallel (implying they must be independent, not chained). The maxItems cap of 5 is left to the schema.

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?

Specific verb+resource ('Runs a plan') with both accepted input modes named, and it explicitly anchors to the sibling plan_records_query via plan_id. An agent can distinguish this batch executor from the planner without opening a schema.

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?

States the two entry paths (a plan_id from plan_records_query, or explicit steps) and the hard cost precondition that decides whether anything executes. It stops short of saying when to prefer this over calling tools directly, but the routing to the planner sibling is clear.

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.