Skip to main content
Glama

agent_runs

Read-only

Review autonomous run history to see timing, prompts, steps, tool calls, outcomes, token usage, and cost, plus trailing-24h spend against budget caps and skills sessions actually loaded.

Instructions

Review the history of autonomous runs: when each ran, what it was asked, how many steps and tool calls it took, how it ended (ok / capped / truncated / error), and its token usage and estimated USD cost. Also returns the trailing-24h spend against the configured budget caps, and which skills recent connected sessions actually loaded (recorded by the tool registry, not claimed by the agent). Use to answer "what has the site been doing on its own", "what is autonomy costing me", or "did it really follow the playbook it said it followed". Read-only.

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": "agent_runs"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many recent runs to return (max 200).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.2

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and the description's 'Read-only' is consistent with that rather than contradictory. Beyond annotations it adds real behavioral context: the record shape, terminal-state vocabulary, budget-cap comparison, and the important provenance caveat that skill loads are 'recorded by the tool registry, not claimed by the agent'. It stops short of 5 by not saying whether the history is truncated/retained or how runs are ordered.

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-loaded with the core action and the return payload, then the aggregates, then the trust caveat, then a one-word safety marker. Dense but each clause carries information; the three quoted example questions are the one mildly padded element.

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 no output schema, the description correctly takes on the job of explaining return values, and it does so thoroughly for a read-only history tool. Minor gaps remain around ordering, retention window, and whether zero runs yields an empty list, but nothing an agent needs to invoke it 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?

Only one parameter and schema description coverage is 100%, so the schema already documents limit including its max of 200. The description adds no semantics about the limit (e.g., ordering, whether it caps the aggregate spend window), so baseline 3 applies.

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 (review) and resource (autonomous run history) and enumerates exactly what each record contains: timing, prompt, step/tool-call counts, terminal state (ok / capped / truncated / error), tokens, and USD cost. It also covers the two aggregate payloads (24h spend vs budget caps, skills loaded). An agent can distinguish this read/history tool from run_agent without opening any 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?

Gives concrete usage contexts via three quoted questions (what the site is doing autonomously, cost, whether the playbook was followed), which is stronger than generic 'use when' phrasing. It does not explicitly name an alternative tool or state exclusions, so it stops short of a 5.

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