Skip to main content
Glama

List partner grants

shop.merchant.grants_list
Read-only

The partners you allowed to act for your store (merchant key only; a grant key is 403 grant_key_not_allowed): grant_id, partner, mode (key: the partner holds a key limited to your catalog and its webhooks; partner: no key, it pushes your catalog with its own partner key and receives your order events at its registered endpoint), scopes (catalog:write, webhooks:write, quotes:read; a grant signed before quotes:read existed gains it when the seller signs the current message again), created_at and the ids of the webhook endpoints each partner created. Revoked grants are not listed.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "shop.merchant.grants_list"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
grantsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / grants / items / properties / mode
      Added value: +{
      +  "enum": [
      +    "key",
      +    "partner"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / properties / grants / items / required
      Previous value: -[
      -  "grant_id",
      -  "partner",
      -  "scopes",
      -  "created_at",
      -  "endpoints"
      -]New value: +[
      +  "grant_id",
      +  "partner",
      +  "mode",
      +  "scopes",
      +  "created_at",
      +  "endpoints"
      +]
  2. Added

TDQS

A3.9/5.0
Behavior5/5

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

Annotations only say readOnlyHint=true and openWorldHint=false; the description adds substantial behavior on top: merchant key required, a grant key yields 403 grant_key_not_allowed, revoked grants are omitted, and grants signed before quotes:read existed gain that scope on re-signing. It also explains what each mode means operationally (key limited to catalog and webhooks vs partner pushing with its own key and receiving order events).

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

Conciseness3/5

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

The purpose is front-loaded, but the whole definition is one long sentence with multiple nested parentheticals, including a multi-clause explanation of mode and scope backfill. The information is valuable but the structure makes it hard to scan; it would read better as separate sentences or a short list.

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 zero-parameter read tool with an output schema and annotations, the description covers the key gaps: authorization requirements, the error mode for grant keys, and the exclusion of revoked grants. Since there is no pagination and no parameters, little is missing, though a note on ordering would round it out.

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?

The tool takes zero parameters, so the baseline is 4. The description's field-by-field explanation is arguably redundant with the output schema, but it does add meaning to the enum-like values ('key' vs 'partner', scopes) that the agent would otherwise have to infer from field names alone.

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 states a specific verb and resource ('The partners you allowed to act for your store' -> list of grants) and enumerates the returned fields, so the agent knows exactly what this returns. It also implicitly separates itself from shop.merchant.grant_revoke by noting revoked grants are excluded. It stops short of naming a sibling for an alternative view, so a 4 rather than a 5.

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: fetch this to inspect who can act for the store. There is no explicit when-to-use or when-not guidance, and no comparison to shop.merchant.webhook_list or grant_revoke. The only routing signal is the auth constraint ('merchant key only'), which is helpful but is not usage 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.