Skip to main content
Glama
dmichael

tezos-mcp

by dmichael

Tez Grep Constant

tez_grep_constant

Retrieve an OCaml constant definition from the Tezos protocol source by name.

Instructions

Look up an OCaml constant definition from the protocol source.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
protocolNoOptional protocol name filter
constant_nameYesConstant name (e.g. 'max_operations_ttl', 'blocks_per_cycle')

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the burden. The word 'Look up' implies a read-only operation, but there is no explicit statement about side effects, error behavior, or output format.

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 a single, concise sentence that directly states the tool's purpose without any fluff or redundancy.

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

Completeness3/5

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

The description is adequate for a simple lookup tool, but it lacks context about when to choose this over search tools. However, the presence of an output schema means the return value explanation is not required.

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 provides descriptions and examples for both parameters (constant_name and protocol). The tool description adds nothing beyond what is already in the schema, so it provides minimal additional value.

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 verb 'Look up' is specific and the resource 'OCaml constant definition from the protocol source' is clearly defined. This distinguishes it from sibling tools like tez_search which likely performs broader searches.

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?

The description provides no guidance on when to use this tool versus alternatives. It does not mention that this is for exact, direct constant lookup or that searching would be more appropriate for fuzzy queries.

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