Skip to main content
Glama

get_session_trace

Read-onlyIdempotent

Retrieves recent tool invocations and open images for session activity tracing and debugging.

Instructions

Return recent tool invocations (run_macro, open_image, …) in order plus optional live open-image list. Trace is in-process only (resets when the MCP server restarts).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax recent events to return.
include_open_imagesNoIf true, append current open-image windows (same data as list_open_images; no extra trace row).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okNo
returned_eventsYes
eventsNo
open_imagesNoSnapshot of open windows when include_open_images was true.
noteNoNon-fatal issues (e.g. open-image snapshot failed).
Behavior4/5

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

Annotations already indicate readOnlyHint and idempotentHint. Description adds value by disclosing that trace is in-process only and resets on server restart, and clarifies that include_open_images appends current windows without adding an extra trace row. No contradictions.

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 sentences with front-loaded key information. Each sentence adds essential context without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the presence of an output schema, description need not explain return values. Parameters are fully covered, and behavioral constraints (in-process only) are stated. No gaps in completeness for this tool.

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

Parameters4/5

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

Schema coverage is 100% so baseline is 3. Description adds context: limit is 'Max recent events to return' (redundant but clear), and include_open_images notes it shares data with list_open_images and does not add a new row, enhancing understanding 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?

Description clearly states 'Return recent tool invocations' with specific examples like run_macro and open_image, and mentions optional live open-image list. It distinguishes itself from siblings by noting that include_open_images provides same data as list_open_images.

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?

Description implies usage for debugging or monitoring recent actions but does not explicitly state when to use vs alternatives. It mentions the in-process limitation which is a usage constraint, but no comparative guidance with siblings like clear_session_trace.

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/surajinacademia/Fiji_imageJ_mcp'

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