Skip to main content
Glama

get_info

Read-only

Retrieve metadata for an agent session, including state, message counts, token usage, sizes, artifact paths, callback delivery, and last error, to inspect and troubleshoot pi coding agents.

Instructions

Get metadata for one agent session: state, message counts, token usage, session/file sizes, log sizes, artifact paths, callback delivery, and last error.

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": {
      "agent_id": "<agent_id>"
    },
    "name": "get_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds useful scope context by enumerating what is inspected (state, token usage, log/artifact sizes, callback delivery, last error), which tells the agent this is a diagnostic/status read. It does not cover behavior on an unknown or expired agent_id, or any cost/latency characteristics.

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?

A single front-loaded sentence with the purpose stated before the field enumeration. The long comma list of metadata categories is dense but each item is informative; only mild redundancy with the output schema keeps it from a 5.

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?

For a one-parameter, read-only inspection tool with an output schema and readOnlyHint annotation, the definition is essentially sufficient: the agent knows what it reads and what it returns. The only real gap is how failures (bad/unknown agent_id) surface, which is minor given the output schema exists.

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 0% for the single parameter, agent_id, so the description carries the burden. It implies agent_id identifies 'one agent session' but adds no format, source, or validity details (e.g., where to obtain the id, whether expired sessions resolve). Marginal compensation for the coverage gap.

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+resource ('Get metadata for one agent session') and then enumerates the exact metadata categories returned, so an agent can immediately tell this apart from grep/list/read siblings that touch content rather than session metadata. It stops short of naming any sibling explicitly, which keeps it at a 4 rather than a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance and no alternatives are named. The agent must infer from the field list alone that this is the tool for inspecting session health/state rather than reading session content.

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