Skip to main content
Glama

Get customer

get_customer
Read-only

Fetch one CRM customer summary in the selected workspace by company id: a company that bought (a purchase order — processing, ready to ship, shipped, delivered or refunded, or with a settled payment — or a won deal that never became an order). Returns health, lifetimeValue (completed-order revenue plus won deals without an order), purchases (purchase orders plus won deals without an order), repeat (two or more purchases), lastPurchaseAt and wonDealsCount (every won deal). Read-only; a company with no purchase is not found. Use list_customers first when you only know the company name; use get_person_customer for a person who bought without a company.

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

Input Schema

NameRequiredDescriptionDefault
companyIdYesThe company/customer id returned by list_customers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • changedInput schema / properties / companyId / description
      Previous value: -"The company/customer id returned by the matching search/list tool."New value: +"The company/customer id returned by list_customers."
  3. Changed1 schema field changed
    • addedInput schema / properties / companyId / description
      Added value: +"The company/customer id returned by the matching search/list tool."
  4. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare the read-only, non-destructive, closed-world behavior, so the description does not need to repeat that. It adds meaningful context beyond annotations: workspace scoping, the not-found behavior for companies without a purchase, and the returned summary fields including health, lifetimeValue, purchases, repeat, lastPurchaseAt, and wonDealsCount.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core action and is dense but purposeful. The parenthetical definitions of a qualifying customer and returned metrics are lengthy, but they earn their place because no output schema is provided and these domain terms are otherwise ambiguous.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 carries the burden of explaining the return semantics and does so by listing the key summary fields and defining purchase, repeat, lifetimeValue, and wonDealsCount. It also covers the not-found case, workspace context, and the main sibling alternatives, leaving little an agent needs to infer before calling it.

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 single companyId parameter is already documented in the schema. The description adds useful retrieval guidance by saying to use list_customers first when only the company name is known, which helps the agent supply the correct id.

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 states a specific verb and resource: 'Fetch one CRM customer summary ... by company id'. It also defines what qualifies as a customer and names the sibling tools list_customers and get_person_customer, making it easy to distinguish from alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly tells the agent to use list_customers first when only the company name is known and to use get_person_customer for a person who bought without a company. It also states that a company with no purchase is not found, which clarifies an important usage boundary.

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