Skip to main content
Glama

Save B2B Store Settings

save_b2b_store_settings
Destructive

Set up or change the B2B store (see get_b2b_store_settings): its address slug, name, logo, colors, whether it is open, whether browsing needs a sign-in, whether prices are shown and the minimum order. Only the fields you pass change; name storeName, logoUrl, primaryColor, secondaryColor or minimumOrderAmount in clear to empty them. Setting the store up for the first time needs a slug. The same rules as the B2B Store page apply. The preview shows each setting before→after and warns when the address moves (old links and unaccepted invitations stop working) or the store opens or closes. A slug another store already uses is refused on commit. Requires an operator (unpinned) credential with Write + storefront.execute and the Admin role.

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": "save_b2b_store_settings"
  }
}

Input Schema

NameRequiredDescriptionDefault
clearNoOptional fields to empty: storeName, logoUrl, primaryColor, secondaryColor, minimumOrderAmount.
inputNoThe settings to change; omitted fields keep their current value.
previewNoStep 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing changes until the commit call.
idempotencyKeyNoCaller-generated idempotency key; required with previewReceipt to commit.
previewReceiptNoStep 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused.

Output Schema

NameRequiredDescriptionDefault
okNo
previewNo
settingsNo
expiresAtNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: the preview renders each setting before→after, warns when the address moves (breaking old links and unaccepted invitations) or when the store opens/closes, and refuses a slug already in use at commit time. It also discloses the authorization requirement (operator/unpinned credential with Write + storefront.execute and the Admin role), which the destructiveHint/openWorldHint flags alone would not convey.

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?

Purpose is front-loaded and every sentence carries information (fields, clear semantics, slug rule, preview/commit, warnings, permissions). The single dense paragraph makes the two-step write mechanics harder to scan than a short bulleted structure would.

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?

For a destructive, open-world, non-idempotent mutation with a preview/commit handshake, the description covers workflow, side effects, validation failures, and credential requirements, while the output schema and annotations carry the return shape and safety profile. An agent has everything needed to call preview and commit correctly.

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%, so the baseline is 3, but the description adds a genuinely useful conditional rule not in the schema prose: a slug is needed only on first setup, and setting a field in `clear` empties it (naming the five clearable fields). It does not explain the interaction between `clear` and `input` for the same field, so it falls short of full semantic coverage.

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?

Opens with a specific verb+resource ('Set up or change the B2B store') and then enumerates the exact settings it touches (slug, name, logo, colors, open state, browse gating, prices, minimum order). It names the read counterpart get_b2b_store_settings, so an agent can immediately separate reading from writing 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 clear context: reading is handled by get_b2b_store_settings, and writing is a required two-step preview-then-commit flow. It also states the first-time-setup condition (a slug is needed). It does not explicitly state when-not to use it (e.g., versus set_shopify_store_settings), so it stops short of full routing 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