Skip to main content
Glama

Hent avgjørelse

get_decision
Read-only

Hent én avgjørelse med stabil id (HR-2024-123-A eller Rt-1979-524). Returnerer strukturert tekst, lov-taggede §-referanser og provenance (source_origin + content_hash). Hver §-tag har lesbar overskrift (section_heading). Sett paragraphs=true for nummererte avsnitt-chunks (pinpoint «avsnitt 45») med arvede §-tags — bruk det for sitérbar RAG-kontekst. Sett statutes=true for å få selve gjeldende lovtekst (section_text) på hver tag.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
statutesNo
paragraphsNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations declare readOnlyHint=true, and the description reinforces that it is a read operation. Beyond annotations, the description details the return structure (structured text, law-tags, provenance, section_heading, section_text), which is valuable behavioral context.

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, well-structured paragraph that front-loads the core purpose, then efficiently covers parameter behavior and output details. Every sentence adds value without redundancy.

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?

Given the tool has no output schema, the description adequately covers the return fields (structured text, tags, provenance, etc.). However, it does not mention error handling, rate limits, or prerequisites, which slightly reduces completeness.

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

Parameters5/5

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

The input schema has no descriptions (0% coverage), so the description fully compensates by explaining each parameter: 'id' format, 'paragraphs' for numbered chunks with inherited tags, and 'statutes' to include law text. This is thorough and actionable.

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 clearly states the tool retrieves a single decision with a specific stable ID format (e.g., HR-2024-123-A or Rt-1979-524). It immediately distinguishes itself from sibling tools like search_decisions which are for searching, not retrieving a specific decision.

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?

The description implies usage when the user has a stable decision ID, but it does not explicitly contrast with sibling tools or provide when-not-to-use guidance. The ID format is specified, which helps, but alternatives are not mentioned.

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.

Resources