Skip to main content
Glama
abdwhb-png

pi-session-recall

by abdwhb-png

Find a Pi session

pi_session_find
Read-onlyIdempotent

Locate a primary Pi session by its complete UUID, scoped to the active project by default or all projects for cross-project search.

Instructions

Find every primary Pi session in the configured scope whose filename ends in the supplied complete UUID. Retry with scope all only when the UUID may belong to another project.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of matching sessions to return, from 1 to 25.
scopeNoSearch primary sessions from the configured active project by default; use all only for an explicit cross-project search. Nested subagent/artifact sessions are excluded.project
cursorNoOmit for the first page. Legacy first-page values '/' and 'start' are accepted. For later pages, pass only the next_cursor returned by the preceding call unchanged.
session_idYesComplete Pi session UUID, including hyphens.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeYes
matchesYes
has_moreYes
next_actionNo
next_cursorNo
scanned_sessionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds that only primary sessions are returned (nested subagent/artifact sessions excluded) and how to recover from a project-scoped miss, but says nothing about ordering, pagination behavior, or result shape beyond what the schema states.

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?

Two tight sentences, no filler. The core capability is front-loaded and the scope-retry caveat follows immediately, so an agent can act after one read.

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 4-parameter, fully documented, read-only lookup tool with an output schema, the description supplies the essential purpose and the one non-obvious operational decision (when to widen scope). Nothing critical is missing, though it could note the exact-match requirement relative to the fuzzy search sibling.

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 100%, so limit, cursor, scope and session_id are all documented in the schema itself. The description only re-touches scope's retry semantics, adding no syntax or format detail beyond the structured fields.

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, resource and matching mechanism: find primary Pi sessions whose filename ends in the supplied complete UUID. The 'primary' qualifier and exact-UUID matching distinguish it from the broader sibling pi_session_search.

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 an explicit condition for widening the search: 'Retry with scope all only when the UUID may belong to another project.' That is clear when/when-not guidance for the scoping parameter, though it never names pi_session_search as the alternative when the UUID is unknown or partial.

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