Skip to main content
Glama

Explain a Valem value

explain_value
Read-onlyIdempotent

Explain how a value in a Valem card was computed: the formula, the values it read and the inputs it ultimately comes from, as Valem's engine has them for the given inputs. Use it when the user asks why a number is what it is. Pass the specHash and current inputs from the latest render_model result or card update.

Input Schema

NameRequiredDescriptionDefault
pathYesThe field to explain, as a canonical path, e.g. "$.total" or "$.items[0].lineTotal".
specNoThe spec, only needed when the server answers spec_unknown.
inputsNoThe card's current inputs keyed by canonical path; omit for the defaults.
specHashNoThe specHash from the render_model result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare the tool as read-only, idempotent, non-destructive, and closed-world. The description adds useful context about what the tool returns (formula, read values, ultimate inputs) and that the explanation reflects Valem's engine for the given inputs, which helps since there is no output schema.

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?

Three tight sentences with the core purpose and trigger front-loaded, followed by parameter sourcing. No wasted language or repetition.

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?

The description compensates for the absence of an output schema by explaining what the explanation contains, and it covers parameter sourcing and usage context. Minor gaps like the spec_unknown fallback are covered in the schema rather than the description, so it is not quite perfect.

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

Parameters4/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 meaningful provenance guidance for specHash and inputs by pointing the agent to the latest render_model result or card update, going beyond the schema's own descriptions.

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 states a specific verb and resource: it explains how a value in a Valem card was computed, including the formula, values read, and input provenance. This is clearly distinguishable from generic sibling tools like explain or eval_expression.

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?

It gives a clear trigger ('when the user asks why a number is what it is') and tells the agent where to obtain the key parameters ('from the latest render_model result or card update'). It does not explicitly name alternatives or when-not-to-use cases, so it falls short of a 5.

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.