Skip to main content
Glama

getBenefit

Read-only

Get one benefit by benefitId. Get benefitId from getBenefits. Never invent UUIDs; only use values from prior tool responses.

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": {
      "benefitId": "<benefitId>"
    },
    "name": "getBenefit"
  }
}

Input Schema

NameRequiredDescriptionDefault
benefitIdYesThe id of the benefit.

Output Schema

NameRequiredDescriptionDefault
benefitYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is fully covered by structured data. The description adds only the anti-fabrication constraint and says nothing about behavior on a stale or non-existent ID, an important failure mode for an ID lookup. With an output schema also present, a 3 reflects modest added value.

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 short sentences, no filler, and the core action is front-loaded ahead of the input-sourcing advice. Every sentence carries operational information for the agent.

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?

For a single-parameter read tool with annotations and a declared output schema, the definition covers action, input provenance, and a misuse guard. The only real gap is missing guidance on the not-found/error case, which the output schema does not cover.

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% and the schema itself only says "The id of the benefit." The description goes beyond that by specifying where a valid value comes from (getBenefits) and forbidding invented UUIDs, which is meaningful semantics the schema does not encode.

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?

"Get one benefit by benefitId" gives a specific verb (get), a specific resource (benefit), and an explicit cardinality (one), which cleanly separates it from the sibling getBenefits list tool. An agent can pick this tool without needing to inspect the schema.

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?

The description names the source of the required input ("Get benefitId from getBenefits") and adds a hard constraint against fabricating IDs, which is real routing guidance. It stops short of stating when to use the single-get versus other benefit tools or what to do if the benefit is not found, so it is clear but not exhaustive.

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