Skip to main content
Glama

getCustomer

Read-only

Get one customer by customerId. Get customerId from getCustomers. 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": {
      "customerId": "<customerId>"
    },
    "name": "getCustomer"
  }
}

Input Schema

NameRequiredDescriptionDefault
customerIdYesThe id of the customer.

Output Schema

NameRequiredDescriptionDefault
customerYes

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 safety is covered. The description adds a genuine behavioral rule beyond that: ids must come from prior tool responses rather than being invented. It says nothing about missing/invalid-id behavior, and return shape is covered by the output schema, so the added context is real but thin.

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. The action and its cardinality are front-loaded, followed by the id-source rule and the anti-fabrication guardrail in priority order.

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 a full output schema and clear read-only annotations, little is missing. The only residual gap is what happens when the id is valid-format but nonexistent, which the description does not address.

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 the single customerId documented, so the schema carries the format burden. The description adds meaning the schema cannot: the provenance constraint that the UUID must originate from a previous tool response, which directly changes how an agent sources the value.

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 customer by customerId.' The singular framing plus the reference to getCustomers makes it distinguishable from the plural sibling without opening either 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?

Gives a concrete prerequisite: obtain customerId from getCustomers, which effectively routes the agent to the sibling for id discovery. It does not explicitly say when not to use this tool (e.g., for listing many customers), so it falls just short of full when/when-not guidance.

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