Skip to main content
Glama

Hand a task to the shop (AI)

create_shop_task

Hand a task for running a shop to its assistant — prices, discounts, stock, hiding or showing products, orders: 'all candles 20 % off until Sunday'. It checks the task against the real stock and returns proposed steps. Nothing changes yet: tell the user the proposal waits for their approval in the shop (review_path). Uses the AI quota. Shop ids come from list_shops.

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>",
      "instruction": "<instruction>"
    },
    "name": "create_shop_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
shop_idYesThe website's id — from list_sites.
instructionYesThe task, concrete and complete (4–1000 characters).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false but destructiveHint=false), it explains the key nuance: despite being a write-flavored tool, nothing is mutated here and the output is proposed steps checked against real stock. It also discloses a cost dimension the annotations cannot convey — "Uses the AI quota" — which matters for an agent deciding whether to call repeatedly.

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?

Front-loaded with purpose, then the no-side-effect guarantee, then the quota and id sourcing — all high-value. The telegraphic fragments ("Uses the AI quota.") and the em-dash/colon stacking cost a little readability but nothing is padding.

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 usefully summarizes the return (proposed steps plus review_path), which an agent would otherwise not know. Missing pieces are minor: no explicit mention of the approve path tool name and no failure behavior when the instruction is too vague or stock checks fail.

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; the description earns more by illustrating the expected instruction content ("all candles 20 % off until Sunday") and telling the agent where shop_id originates. Note the sourcing conflict: the description says ids come from list_shops while the schema property says "from list_sites", which will confuse an agent resolving the identifier.

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?

States a concrete verb and resource ("Hand a task for running a shop to its assistant") and enumerates the task surface: prices, discounts, stock, hiding or showing products, orders, with a worked example. The line "Nothing changes yet" implicitly separates it from the apply/reject siblings, so an agent can place it without opening another 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 operating context: the call only produces a proposal that the user must approve in the shop via review_path, and it points at list_shops for obtaining the identifier. It does not explicitly name apply_shop_task as the follow-up call once approved, so the routing is implied rather than spelled out.

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