Skip to main content
Glama

get_decision

Read-onlyIdempotent

Fetch full decision content by id, including metadata. Use after index_only queries for on-demand detail retrieval.

Instructions

Fetch a single decision by id, including its full content. Companion to query_decisions index_only: true (progressive disclosure): list cheaply with index_only, then pull full content on demand for the ids you care about. Read-only. Returns JSON: { decision: { id, title, content, type, tags, ... } } or { error } when not found.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesDecision id to fetch (from an index_only query).
verifyNoStaleness verification (default: true). When true, the returned decision carries `verification` + `stale` when its linked symbol was deleted/renamed or its source changed since `created_at`.
Behavior5/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false. Description adds behavioral details: returns JSON with decision fields or error when not found, and is read-only. No contradictions.

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?

Two sentences: first states main action, second provides companion context and return format. Front-loaded and every sentence earns its place.

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

Completeness5/5

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

No output schema exists, but description provides the expected JSON structure and error case. All parameters are documented, and usage context is given. Complete for a simple retrieval tool.

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 coverage is 100% with descriptions. Description adds value by linking id to 'from an index_only query' and explaining verify as 'Staleness verification', enriching understanding beyond schema.

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?

Clearly states 'Fetch a single decision by id, including its full `content`', specifying verb, resource, and scope. Distinguishes from sibling query_decisions by mentioning progressive disclosure.

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

Usage Guidelines5/5

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

Explicitly positions as companion to query_decisions index_only: true, suggesting a pattern: list cheaply, then fetch full content. Provides clear context for when to use.

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/nikolai-vysotskyi/trace-mcp'

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