Skip to main content
Glama

Parameter declarations and public default at a commit

get_param
Read-onlyIdempotent

Retrieves every declaration of an exact or qualified parameter name at a pinned commit, with type, public default, declaration span, and lexical mentions for reproducible evidence.

Instructions

Every declaration of a named parameter (param!, const, static or field; exact or qualified name) at a pinned, indexed commit: literal public default, declared type, flag, cited declaration span, and up to 10 lexical mentions elsewhere. Public defaults at that commit, never production values.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "commit": "<commit>",
      "name": "<name>"
    },
    "name": "get_param"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesExact name or qualified name (no GLOB).
commitYes

Output Schema

NameRequiredDescriptionDefault
dataNo
toolNo
errorNo
notesNo
commitNo
outcomeNo
warningsNo
truncatedNo
next_cursorNo
schema_versionNo
index_generationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so the safety profile is covered. The description does add real behavioral context beyond that: it caps mentions at 10 and clarifies that only literal public defaults at that commit are returned, 'never production values' — an important scope caveat. It stops short of describing error behavior for unindexed commits or how mentions are ordered.

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 dense sentence that front-loads the resource scope, then the returned fields, then the key caveat. It is telegraphic but wastes no words; only minor readability cost from the semicolon-heavy enumeration.

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?

With an output schema present, the description need not explain return shape, yet it still sketches the fields, which is a bonus. For a two-required-parameter read tool with full annotations, the definition covers scope and the public-vs-production caveat; the main omission is what happens when the commit is not indexed.

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 coverage is 50%: name is documented in the schema, commit is not. The description partially compensates by characterizing the commit as 'pinned, indexed' and reiterating exact/qualified name matching, which ties the commit parameter to the indexing precondition. It adds some meaning but not enough to fully cover the undocumented commit parameter's failure modes.

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?

Names the specific resource (every declaration of a named parameter) and enumerates the declaration kinds covered (param!, const, static, field) plus what is returned. It is clearly a declaration-lookup tool, distinct in spirit from search_code or param_history, though it never contrasts itself with param_history or find_symbols by name.

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?

There is no explicit when-to-use or when-not-to-use statement and no named alternative. Usage is only implied by the constraints 'at a pinned, indexed commit' and 'exact or qualified name (no GLOB)', which tell the agent prerequisites rather than routing guidance.

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