Skip to main content
Glama

Run tools

run_tool

Execute one or up to 25 finance tool calls in a single batch, run independent calls concurrently, and pass file or prior result references between calls without copying data.

Instructions

Run a tool find_tool named: one ({name, arguments}), or up to 25 ({calls: [...]}). Independent calls run at once; a failed call returns its own error. Read-only unless the paper-trading pack is on. Any argument can be {"$file": "path.csv", "column": "close"} (or "columns": [...] / "all") instead of pasted numbers. {"$result": i, "path": "close"} passes batch call i's output into a later call; every result also has a ref ("r1", ...) later calls pass the same way, {"$result": "r1", "path": "close"}, so data never needs copying.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "run_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoTool name from find_tool.
viewNoDraw the result for the person (charts, statements, yield curves, backtests) where MCP Apps are drawn; you get a summary.
as_ofNoAs of this past date (YYYY-MM-DD): only what was public then.
callsNoSeveral calls in one round trip; calls without $result run concurrently.
digitsNoRound fractional numbers to this many significant figures (default 6; 4 saves tokens); whole numbers never change.
returnNoBatch: every result (default) or only the last.
selectNoOnly these fields of each result, as dotted paths, e.g. ["verdict", "rows.0.accession"] (rows take column names).
receiptNoAdd input and output SHA-256 and pack versions, to recompute and compare later.
argumentsNoThe tool's arguments.
max_charsNoCap each result at this many JSON characters; the rest stays under its ref.
changes_onlyNoOnly what changed since this call last ran in this session.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changedv0.20.0
    • changedInput schema / properties / arguments / description
      Previous value: -"The tool's arguments (single call)."New value: +"The tool's arguments."
    • addedInput schema / properties / as_of
      Added value: +{
      +  "description": "As of this past date (YYYY-MM-DD): only what was public then.",
      +  "maxLength": 10,
      +  "type": "string"
      +}
    • changedInput schema / properties / calls / description
      Previous value: -"Several calls in one round trip. Calls without $result references run concurrently."New value: +"Several calls in one round trip; calls without $result run concurrently."
    • addedInput schema / properties / changes_only
      Added value: +{
      +  "description": "Only what changed since this call last ran in this session.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / digits / description
      Previous value: -"Round fractional numbers in the results to this many significant figures (4-6 saves output tokens); whole numbers such as counts, shares and IDs are never changed. Default: as each tool returns them."New value: +"Round fractional numbers to this many significant figures (default 6; 4 saves tokens); whole numbers never change."
    • addedInput schema / properties / max_chars
      Added value: +{
      +  "description": "Cap each result at this many JSON characters; the rest stays under its ref.",
      +  "maximum": 200000,
      +  "minimum": 1000,
      +  "type": "integer"
      +}
    • changedInput schema / properties / name / description
      Previous value: -"Tool name from find_tool (single call)."New value: +"Tool name from find_tool."
    • changedInput schema / properties / receipt / description
      Previous value: -"Add input and output SHA-256 and pack versions so the result can be recomputed and compared."New value: +"Add input and output SHA-256 and pack versions, to recompute and compare later."
    • changedInput schema / properties / return / description
      Previous value: -"For a batch: every result (default) or only the last one."New value: +"Batch: every result (default) or only the last."
    • changedInput schema / properties / select / description
      Previous value: -"Return only these fields of each result, as dotted paths, e.g. [\"verdict\", \"multiple_testing.best\", \"rows.0.accession\"] (table rows take column names)."New value: +"Only these fields of each result, as dotted paths, e.g. [\"verdict\", \"rows.0.accession\"] (rows take column names)."
    • changedInput schema / properties / view / description
      Previous value: -"Draw the whole result for the person (charts, comparisons, option chains, yield curves, statements, backtest dashboards, order tickets) and return you a summary, where MCP Apps are drawn."New value: +"Draw the result for the person (charts, statements, yield curves, backtests) where MCP Apps are drawn; you get a summary."
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, openWorldHint=true and idempotentHint=false, and the description explains the why: read-only unless the paper-trading pack is enabled, which accounts for the non-read-only hint without contradicting it. It also discloses per-call error isolation and concurrency behavior, though it says nothing about rate limits or auth requirements.

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?

Front-loads the core action and keeps to a single dense paragraph with no filler sentences. The phrasing 'Run a tool find_tool named' is slightly garbled, and the $file/$result clauses are crammed together, but each sentence carries necessary information.

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 an 11-parameter, nested-schema dispatcher with an output schema and full annotation coverage, the description supplies the pieces the structured fields cannot: batching semantics, cross-call data passing, and the conditional read-only/write behavior. Remaining options like digits, select and max_chars are fully documented in the schema, so nothing essential is missing.

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 already 100%, but the description still adds genuine meaning: the {$file: ...} substitution for column/columns/all, the {$result: i, path} and named-ref ('r1') mechanisms for piping one call's output into another. That is behavior the opaque additionalProperties schema cannot convey.

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 (run) plus the resource (a named tool from find_tool) and the cardinality options (one call vs up to 25 in a batch). This cleanly separates it from siblings find_tool and describe_tool, which only look up and describe tools rather than execute them.

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 actionable selection rules: single call form vs batch form, independent calls run concurrently, and $result/refs are how you chain dependent calls. It stops short of explicit when-not-to-use guidance (e.g. prefer a direct tool when only one call is needed), so it is strong but not complete.

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