Skip to main content
Glama

get_context

Retrieves relevant documentation context based on the current code file, with adjustable depth. No need to manually search for documentation.

Instructions

Automatically provides relevant documentation context based on what code you're currently working on. No need to ask - it just knows.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dirPathYesThe absolute path to the local project.
currentFilePathYesThe path to the file currently being worked on.
contextDepthNoOptional. 'minimal', 'standard', or 'deep' (default: 'standard').
Behavior2/5

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

No annotations provided, so the description carries the full burden. It fails to disclose what the tool does under the hood (e.g., how it determines context, output format, limitations). 'It just knows' is vague and provides no actionable detail.

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?

Two short sentences, front-loaded with purpose. The second sentence is slightly marketing-fluff but does not waste much space. Could be more efficient by combining ideas.

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

Completeness2/5

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

Despite 100% schema coverage and no output schema, the description omits what 'context' actually includes (e.g., docs, examples, type info) and how the tool determines relevance. This is insufficient for an agent to predict behavior.

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 description coverage is 100%, so the baseline is 3. The description adds no parameter details beyond the schema, but the schema is already self-explanatory for the three parameters.

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 provides documentation context based on current code, using specific verbs 'provides' and 'context'. It distinguishes from sibling search tools like search_docs and find_docs by emphasizing automatic inference.

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?

The description implies usage when automatic context is needed ('No need to ask'), but does not explicitly state when to use it over alternatives or when not to use it. No sibling comparisons are made.

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/reasvyn/docsgrep'

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