Skip to main content
Glama

Farm.js Docs

Get budgeted docs context

get_context
Read-only

Build deterministic, section-level documentation context for a query within a conservative UTF-8 byte ceiling derived from the requested token budget, with source URLs and accounting metadata.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNo
queryYes
localeNo
packageNo
versionNo
frameworkNo
tokenBudgetNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
budgetYes
contextYes
filtersYes
sourcesYes
resultCountYes
candidateCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds genuine behavioral context: output is deterministic, section-level, bounded by a 'conservative UTF-8 byte ceiling' derived from the token budget, and includes source URLs plus accounting metadata. It stops short of saying what happens on truncation or how sections are ranked.

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?

A single front-loaded sentence with no wasted filler. It is dense with jargon ('conservative UTF-8 byte ceiling', 'accounting metadata'), which slightly taxes readability, but it stays compact.

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?

The existence of an output schema excuses explaining return values, but six of seven parameters (tags, locale, package, version, framework) go undocumented in both schema and description. For a tool whose usefulness depends on scoping by package/framework/version, the definition is materially incomplete.

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

Parameters2/5

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

Schema description coverage is 0% across 7 parameters, so the description must carry the burden and largely doesn't. It indirectly conveys the meaning of query and tokenBudget (the byte ceiling), but gives zero guidance on tags, locale, package, version, or framework — parameters whose filtering semantics are entirely undocumented.

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 gives a specific verb+resource ('Build deterministic, section-level documentation context for a query') and distinguishes itself from data-listing siblings like list_docs/read_page by emphasizing section-level, budgeted retrieval. However it never explicitly differentiates itself from search_docs or get_code_examples, which an agent could plausibly confuse it with.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance and no named alternatives. With siblings such as search_docs, read_page, and get_code_examples in the same family, the agent gets no signal about when this budgeted-context tool is preferable over plain search or page reads.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.