Skip to main content
Glama

get_customer

Read-onlyIdempotent

Retrieves a customer's profile, net spend, 20 newest orders, subscriptions, saved payment methods (brand and last 4), and live session count by numeric customer ID.

Instructions

One customer by id: profile, net spend, their 20 newest orders, subscriptions, saved payment methods (brand and last 4 only) and how many live sessions they have.

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": {
      "customer_id": "<customer_id>"
    },
    "name": "get_customer"
  }
}

Input Schema

NameRequiredDescriptionDefault
customer_idYesThe customer's numeric id (from find_customer).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds real behavioral detail beyond them: the payload is bounded to the 20 newest orders, payment methods are truncated to brand and last 4, and a live-session count is included — all useful expectations for the agent. It does not state behavior for an unknown id, which keeps it below a 5.

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?

A single front-loaded sentence with zero filler: identity of the record comes first, followed by the returned contents. Nothing repeats the name or annotations, and every clause conveys a distinct fact about the payload.

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?

With no output schema, the description must describe return values, and it does so concretely, including truncation limits that an agent would otherwise have to discover empirically. The remaining gap is error/empty behavior for an id that does not resolve, which is minor for a simple single-entity read.

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

Parameters3/5

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

There is a single required integer parameter with 100% schema description coverage, including the minimum and the pointer to find_customer, so the schema already carries the meaning. The description adds only the implicit 'look up by id' framing, which is the baseline 3 case.

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 ('One customer by id') and then enumerates exactly what comes back: profile, net spend, 20 newest orders, subscriptions, payment methods, live sessions. This clearly separates it from find_customer (which produces ids) and from list/search siblings that return many records.

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?

Usage is only implied: 'by id' plus the schema note that the id comes from find_customer suggests the find-then-fetch flow. The description itself never says when to call this versus find_customer, search_orders, or list_subscriptions, and gives no guidance for a nonexistent id.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.