Skip to main content
Glama

get_agent_context

Fetch the complete agent context JSON from a finished analysis, containing file index, dependency graph, architecture layers, call chains, and database schema, for saving codebase understanding.

Instructions

Get the full agent context JSON for a completed analysis. This is a structured format optimized for AI agents, containing file index, dependency graph, architecture layers, call chains, constraints, design decisions, and database schema. Save the output to agent_context.json for persistent codebase understanding.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
job_idYesThe job ID from analyze_repo.
Behavior3/5

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

With no annotations, the description carries the burden of behavioral disclosure. It describes the output contents and suggests saving to a file, but doesn't explicitly state that it's read-only or note any side effects. However, the name 'get' implies retrieval, and it does explain what the returned JSON contains.

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?

The description is two sentences, front-loaded with the primary purpose and then detailing the output contents. Every sentence adds value without unnecessary fluff.

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 tool has no output schema, the description adequately explains what the returned JSON includes (file index, dependency graph, architecture layers, etc.). It also notes the prerequisite of a completed analysis, making it sufficiently complete for an agent.

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?

The schema description covers the single parameter (job_id) fully with 'The job ID from analyze_repo.' The tool description adds no additional semantic meaning beyond that, but since schema coverage is 100%, the baseline of 3 is appropriate.

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?

The description clearly states the tool gets the full agent context JSON for a completed analysis, with a specific verb ('get') and resource ('full agent context JSON'). It distinguishes itself from sibling tools like get_summary and get_section by emphasizing it returns the complete structured context rather than a part.

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?

The description provides clear context for when to use this tool: for a completed analysis and for persistent codebase understanding. It implies this is the comprehensive option compared to smaller retrievals, but doesn't explicitly name alternatives or when not to use it.

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/selvatuple/revibe-mcp'

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