Skip to main content
Glama

getPromocode

Read-only

Get one promocode by promocodeId. Get promocodeId from getPromocodes. 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": {
      "promocodeId": "<promocodeId>"
    },
    "name": "getPromocode"
  }
}

Input Schema

NameRequiredDescriptionDefault
promocodeIdYesThe id of the promocode.

Output Schema

NameRequiredDescriptionDefault
promocodeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/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 covered. The description adds genuinely non-structural behavioral guidance: the id must originate from a prior tool response and must not be fabricated. Return shape is left to the output schema, which is appropriate.

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 short sentences, front-loaded with purpose followed by the parameter-provenance constraint. No redundant restatement of the name or annotations; every clause carries operational value.

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 one-parameter read tool with annotations and an output schema, the description covers purpose, parameter provenance and a key guardrail. A minor gap remains around failure behavior (what happens for an unknown or archived promocode id), which an agent might want to know.

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% (type, uuid format, regex pattern, description), so the baseline is 3. The description earns above baseline by explaining the provenance of promocodeId — it comes from getPromocodes output — which the schema cannot express, and by prohibiting synthetic values.

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?

States a specific verb and resource with explicit cardinality ('Get one promocode by promocodeId'), which distinguishes it from the plural sibling getPromocodes. An agent can tell immediately that this is the single-record fetch and does not need to open the schema to disambiguate.

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?

Gives clear usage context by routing the agent to getPromocodes as the source of the id, and adds a hard constraint ('Never invent UUIDs; only use values from prior tool responses'). It stops short of stating an explicit exclusion (e.g. 'use getPromocodes to browse/list'), so it lands at clear-context without full alternative routing.

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