Skip to main content
Glama

Metis — Get Agent Runs

get_agent_runs

Retrieve recent agent run history including status, timestamp, and token usage. Filter by agent or date range to review past activity.

Instructions

Retrieve recent agent run history from the database.

Returns the log of past agent work — what ran, when, its status, and token
usage — for the dashboard or for reviewing recent activity. These rows are
written by log_agent_run. Results come back newest first.

Args:
    limit: Maximum number of runs to return, newest first (default 10).
    since: ISO date or datetime string; only runs at or after this time are
        returned. Empty string (default) returns runs from all dates.
    agent_slug: Filter to a single agent by slug, e.g. "librarian" or
        "metis". Empty string (default) returns all agents.

Returns:
    A text block listing the matching runs (run_id, agent, task summary,
    status, timestamp, token counts, model).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
sinceNo
agent_slugNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Since no annotations provided, description carries full burden. Clearly indicates read-only behavior (retrieve, returns log). Describes output format and ordering (newest first). Lacks explicit safety or authorization notes, but for a get tool the behavior is transparent enough.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Concise and well-structured. First sentence states purpose, second explains what it returns, third gives relationship to log_agent_run, then bullet-style args. No redundant sentences.

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?

Covers key aspects: what it does, parameters, return format (text block with fields). Output schema exists but description still lists fields. Could mention pagination or error cases, but for a simple retrieval it is sufficiently complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Input schema provides only titles and defaults (0% coverage), but description includes an 'Args' section explaining each parameter in detail: limit (max count, default 10), since (ISO date/datetime, empty for all), agent_slug (filter by slug, empty for all). This adds significant meaning beyond 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?

Clearly states it retrieves recent agent run history from the database. Uses specific verb 'Retrieve' and resource 'agent run history'. Distinguishes from sibling tools like log_agent_run (write) and other get_* tools by focusing on runs and specifying results order.

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?

Mentions usage 'for the dashboard or for reviewing recent activity' but does not explicitly state when not to use or compare with alternative tools. No exclusion criteria or guidance on selecting this over similar tools like search_memory or list_recent_sessions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SVerITG/Metis'

If you have feedback or need assistance with the MCP directory API, please join our Discord server