Skip to main content
Glama

activity

Find recent operations or look up existing 32/48-character hex request, pending, or session IDs, then identify the ID kind and select the next read tool without waiting.

Instructions

Use to find recent operations, identify a labelled ID kind, and choose the next read tool; returns without waiting. Use recent with no ID, or lookup with an existing 32/48-lowercase-hex request_id, pending_id or session_id; legacy IDs, input_id, OGF identities, Codex job IDs and wire IDs are excluded. This bounded current-process view cannot establish complete history or exact OS execution times; follow the returned next_tool and next_args for further observation.

Read-only, no Owner window. Resolve existing labelled IDs or list the newest admissions in this current execution process (Broker lifetime in Broker mode), not prior journals, archives or arbitrary tool-call history. recent: id=null, strict integer limit 1..20 (default 10). lookup: id is exactly 32/48 lowercase hex, limit=10; no normalization, coercion, bool, extras or explicit null mode/limit. Legacy IDs, input_id, OGF identities, Codex job IDs and wire IDs are excluded. Window: 512 operations, one hour; empty/truncated results are bounded coverage, never complete history. Reply keys: status, mode, scope, query_id, id_kind, records, count, truncated, error, next_tool, next_args, required_action, auto_retry=false. Records contain only operation_type; request_id/pending_id/session_id; state/review_state/job_state/state_source; created_at/updated_at/finished_at (UTC RFC 3339 or null), time_basis=PRODUCER_EVENT; and route/action fields. Producer times are not exact OS execution times. Current job state wins; stored review/launch state stays separate; input/edit state is its own. Retired/cache-only source gives OUTCOME_UNKNOWN; collisions AMBIGUOUS; malformed data ERROR, missing Broker UNAVAILABLE, unconfirmed wire reply OUTCOME_UNKNOWN. Maximum 20 records / 32768 UTF-8 JSON bytes. Use labelled IDs with the returned existing read tool: request_status with request_id, review_status with command/input pending_id when registered, edit_review_status with edit/create pending_id when registered, list_sessions or recovery_overview with no args. recovery_overview is suggested separately, never called here; private archive access retains its existing Owner-verification boundary. PENDING is an observation, not approval expiry. UNKNOWN does not prove nonexecution. Keep the original IDs; never resubmit, replay, approve, clear, or generate replacement IDs. Uncertain outcomes require manual reconciliation; report failures and wait.

TIMED_OUT is terminal and routes to REPORT_AND_WAIT with no next tool; report and wait for the Owner's next instruction, never resubmit.

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

Input Schema

NameRequiredDescriptionDefault
idNoNull for recent; required for lookup: exactly 32 or 48 lowercase hex, without normalization. Legacy internal IDs, input_id, OGF identities, Codex job IDs and wire IDs are excluded. Keep the original IDs. request_status takes request_id; review_status takes command/input pending_id; edit_review_status takes edit/create pending_id only when registered. list_sessions and recovery_overview take no IDs. recovery_overview is a separate read and retains its Owner-verified private archive boundary; activity never calls it.
modeNoRead-only, no Owner window. recent (default): newest admissions in the bounded 512-operation, one-hour current execution process window, not complete history. lookup: resolve labelled request_id/pending_id/session_id by membership. States separate stored review/launch from current job; producer UTC RFC 3339 times are not OS execution times. PENDING is an observation, not approval expiry. UNKNOWN does not prove nonexecution. Use returned existing read tool; never resubmit/replay/approve/clear or generate replacement IDs. Uncertainty requires manual reconciliation; report failures and wait. TIMED_OUT (EXPIRED/CLOSED) is terminal: REPORT_AND_WAIT; never resubmit or ask for the window again. See tool help for outcome handling.recent
limitNoStrict integer 1..20 for recent, default 10; lookup requires 10. No coercion, bool, null, extras or invalid mode combinations. Reply: status/mode/scope/query_id/id_kind/records/count/truncated/error/next_tool/next_args/required_action/auto_retry. Each record: operation_type, labelled request_id/pending_id/session_id, state/review_state/job_state/state_source, created_at/updated_at/finished_at, time_basis=PRODUCER_EVENT and route/action/auto_retry=false. At most 20 rows and 32768 UTF-8 JSON bytes. No retained rows does not mean no operations. Cached expired sources give OUTCOME_UNKNOWN; collisions AMBIGUOUS. Failures require report and wait; no automatic retry.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.7

TDQS

A4.1/5.0
Behavior5/5

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

With no annotations present, the description carries the full behavioral burden and does so thoroughly: read-only, no Owner window, a 512-operation/one-hour bounded window, reply keys, record fields, state-precedence rules, error mappings (OUTCOME_UNKNOWN, AMBIGUOUS, ERROR, UNAVAILABLE), and the terminal TIMED_OUT routing. It also explicitly warns that PENDING is not approval expiry and UNKNOWN does not prove nonexecution.

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

Conciseness2/5

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

The description is a long, cramped block with awkward line breaks and substantial duplication: legacy IDs, the 512-operation/one-hour window, and the status semantics are stated more than once, and the same material also appears in the schema. The key routing information is present but not front-loaded cleanly, so an agent must work to parse it.

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 complex routing tool with an output schema available, the description is more than sufficient: it covers modes, ID constraints, limits, outcome statuses, and follow-up routing. Its only weakness is that the completeness is delivered through repetition and density rather than a clean structure.

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 coverage is already 100%, and the schema descriptions independently restate the mode, ID, and limit semantics. The tool description reinforces those meanings, but it adds little beyond what the schema already documents, so the baseline of 3 is appropriate.

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 opening sentence names a specific action set (find recent operations, identify a labelled ID kind, choose the next read tool) and explicitly notes it returns without waiting. It also routes to distinct siblings, so an agent can tell it apart from request_status or review_status. The core purpose is somewhat buried under dense caveats, which keeps it from 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 Guidelines5/5

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

It states exactly when to use each mode: recent with no ID versus lookup with an existing 32/48-lowercase-hex request_id, pending_id or session_id. It also names explicit exclusions (legacy IDs, input_id, OGF identities, Codex job IDs, wire IDs) and tells the agent which returned tool to use for follow-up, so no alternative selection is left to inference.

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