Skip to main content
Glama

get_agent_context

Retrieve your current work context and session details to see your active objective, locked files, and project status. Call at conversation start to resume previous work and verify your state.

Instructions

Retrieve your current work context and session information.

WHEN TO USE:

  • At the start of a conversation to check if you have an active context

  • To verify your current objective and project

  • To see what files you have locked

  • To understand what you were working on in a previous session

  • When resuming work after an interruption

RECOMMENDED: Call this at the beginning of each conversation to establish context and understand your current state in the system.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idYesYour agent_id from register_agent() (required)
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool retrieves current context and session info, including locked files and prior session state. However, it does not address edge cases such as missing context, invalid agent_id, or any potential side effects. The read-only nature is implied by 'Retrieve' but not explicit.

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

Conciseness4/5

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

The description is well-structured with a main sentence and a bulleted WHEN TO USE section. Each bullet adds a specific scenario, though the RECOMMENDED paragraph partially duplicates the bullets. It's concise and front-loaded.

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 tool with one parameter and no output schema, the description covers the key use cases and recommended timing. It would benefit from noting what happens when no active context exists, but otherwise it's sufficient for an agent to understand when and why to call it.

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 already describes the sole parameter 'agent_id' as 'Your agent_id from register_agent() (required)' (100% coverage). The description adds no additional parameter semantics, so baseline 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 description clearly identifies the tool's function: 'Retrieve your current work context and session information.' It uses a specific verb and resource. While it doesn't explicitly contrast sibling tools, the WHEN TO USE section implies its scope (active context, locked files, previous sessions), which helps differentiate it from history/log tools.

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 an explicit 'WHEN TO USE' list with concrete scenarios (start of conversation, verify objective, see locked files, resume after interruption). It also includes a recommendation to call at the beginning of each conversation. However, it does not mention when not to use or name alternative tools.

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/siddiquesahabaj/CoordMCP'

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