Skip to main content
Glama

Get agent run logs

get_agent_run_logs
Read-onlyIdempotent

Fetch a session's log content from one agent run. part=session is the agent stream-json (reasoning + tool calls); part=system is the container/runner stdout (clone, dependency install, validation gate, git, callback); part=prompt is the assembled input prompt. The role and sessionId are fields of the agent run's own record. A log longer than 40,000 characters returns its end, from a whole line, with a note.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
partNoWhich log stream to readsession
roleYesAgent role: planner | builder | reviewer | qa
sandboxIdYesAgent run id: the run's sandbox id
sessionIdYesSession id from get_agent_run's sessions list

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.