Skip to main content
Glama

get_merchant_profile

Read-onlyIdempotent

Return rate, complaint rate and delivery issue rate across a merchant's products.

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": {
      "shop_domain": "<shop_domain>"
    },
    "name": "get_merchant_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault
shop_domainYes

Output Schema

NameRequiredDescriptionDefault
min_sampleYes
return_rateYes
sample_sizeYes
shop_domainYes
top_reasonsYes
return_factsNoBig retailers only: restocking fee, holiday extension, windows by category.
store_policyYes
product_countYes
complaint_rateYes
last_synced_atYes
delivery_issue_rateYesShare of outcomes citing late_delivery or damaged.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / $defs / RetailerReturnFacts
      Added value: +{
      +  "description": "More return facts read from a big retailer's public return-policy page. Not verified by BuyRecord.",
      +  "properties": {
      +    "category_windows": {
      +      "additionalProperties": {
      +        "type": "integer"
      +      },
      +      "description": "Return window in days where it differs by category (big retailers).",
      +      "title": "Category Windows",
      +      "type": "object"
      +    },
      +    "fetched_at": {
      +      "anyOf": [
      +        {
      +          "format": "date-time",
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Fetched At"
      +    },
      +    "holiday_extension": {
      +      "anyOf": [
      +        {
      +          "type": "boolean"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "True when the page mentions holiday returns.",
      +      "title": "Holiday Extension"
      +    },
      +    "label": {
      +      "const": "published by the retailer, not verified",
      +      "default": "published by the retailer, not verified",
      +      "title": "Label",
      +      "type": "string"
      +    },
      +    "restocking_fee": {
      +      "anyOf": [
      +        {
      +          "type": "boolean"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "True when the page mentions a restocking fee.",
      +      "title": "Restocking Fee"
      +    },
      +    "source_url": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Page the facts were read from (big retailers).",
      +      "title": "Source Url"
      +    }
      +  },
      +  "title": "RetailerReturnFacts",
      +  "type": "object"
      +}
    • addedOutput schema / properties / return_facts
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/RetailerReturnFacts"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Big retailers only: restocking fee, holiday extension, windows by category."
      +}
  2. First observed

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered and the bar is lower. The description contributes the content of the response (three rate metrics aggregated over products), which is genuine behavioral information beyond the annotations. It discloses nothing about the measurement window, how rates are computed, or how the merchant is resolved from the domain.

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?

One short sentence with no filler, and the metrics are front-loaded so the agent sees them immediately. It is a fragment without a verb, which slightly reduces crispness but wastes nothing.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-value structure need not be explained, but rate metrics are meaningless without a stated time window and the tool has no time parameter – the fixed measurement period is never disclosed. Aggregation granularity (per product vs blended merchant figure) is also unstated despite the phrase 'across a merchant's products'. For an analytics tool with an undocumented required identifier, this leaves material gaps.

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

Parameters2/5

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

The single parameter shop_domain has zero description coverage in the schema – only a regex pattern. The description does not state that the merchant is identified by a shop domain, whether a bare domain or a URL is expected, or how the domain maps to the account. With 0% coverage and one required parameter, the description needed to compensate and does not.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the three concrete metrics returned (return rate, complaint rate, delivery issue rate) and the aggregation scope ('across a merchant's products'), so an agent knows what data comes back. It is a noun phrase rather than a verb+resource statement, but combined with the tool name the purpose is unambiguous. It stops short of explicitly contrasting itself with get_product_outcomes, which appears to return product-level rather than merchant-level outcomes.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no exclusion of alternatives, and no mention of prerequisites. The agent is not told to use this instead of get_product_outcomes when a merchant-level rollup is needed, nor when not to. Usage must be inferred entirely from the tool name and sibling names.

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