Skip to main content
Glama

Apply a shop task

apply_shop_task
Destructive

Carry out a proposal from create_shop_task: prices, discounts, stock and visibility change in the real shop. Tell the user the proposed steps and ask before calling this. Every step is checked again against the stock; what no longer fits is skipped and reported — tell the user what was done and what was not.

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_id": "<shop_id>",
      "task_id": "<task_id>"
    },
    "name": "apply_shop_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
shop_idYesThe website's id — from list_sites.
task_idYesThe task's id from the tool that created it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructive=true, idempotent=false and openWorld=true, so the safety profile is covered by structured data. The description still adds substantial behavior beyond that: each step is re-validated against stock at apply time, stale steps are skipped rather than failing the whole run, and the outcome is partial and must be reported back item by item. Irreversibility of applied price/visibility changes is left implicit.

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?

Three sentences, front-loaded with the action and its scope before the confirmation requirement and the partial-failure note. The closing 'tell the user what was done and what was not' slightly restates the skipping behavior already stated, but the instruction is load-bearing for agent behavior.

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 correctly explains how results surface — skipped steps are reported and must be relayed to the user — which is the key completeness need for a partial-success mutation. Given full schema coverage and rich annotations, the remaining omission (reversibility of applied changes) is minor.

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?

Schema description coverage is 100% and both parameters document their provenance (shop_id from list_sites, task_id from the creating tool), so the schema carries parameter meaning. The description adds no further syntax or format detail, which matches the baseline of 3 for fully covered schemas.

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 uses a specific verb ('Carry out') on a specific resource ('a proposal from create_shop_task') and enumerates the affected domains (prices, discounts, stock, visibility) in the real shop. It explicitly binds itself to the sibling tool that produces the input, so an agent can tell it apart from create_shop_task and reject_shop_task without reading 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?

It states clearly when to use it (a proposal created by create_shop_task exists) and imposes an explicit pre-call gate: tell the user the proposed steps and ask before calling. The only gap is that it doesn't name the sibling alternative (reject_shop_task) for the case where the user declines.

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