Skip to main content
Glama

Field Service Business Platform by Doing Work

shops_setPricingRules

Destructive

Save the owner's pricing rules for their assistant, in their own words (owner only). For example: ignore jobs marked discount, add 15% for a second-story deck, minimum $2,500. Send null or an empty string to clear them. quotes.comparables and quotes.draftFromVisit return them. The assistant applies them. Doing Work does 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>"
    },
    "name": "shops_setPricingRules"
  }
}

Input Schema

NameRequiredDescriptionDefault
rulesNoThe rules in the owner's words. Null clears them.
shop_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, and the description adds the concrete destructive action (null or empty string clears the stored rules) plus the read surfaces that consume them. It does not state authorization prerequisites beyond 'owner only' or size limits, but it meaningfully supplements the annotations.

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 the action and scope, then examples, then the clear operation, then downstream consumers. The short telegraphed sentences ('The assistant applies them. Doing Work does not.') are terse but each carries functional information; nothing is padded.

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

Completeness3/5

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

An output schema exists, and the description covers content format, clearing, and read/write surfaces, which is enough to call it correctly for a two-parameter tool. It leaves owner-permission failure behavior and the 4000-character limit unaddressed, minor gaps given the rich annotations and output schema.

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 only 50% (rules documented, shop_id not). The description supplies the meaning of rules that the schema can't: free-form owner prose, examples of the expected content, and the null/empty-string clear semantics, which go beyond the schema's 'Null clears them'.

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?

Names a specific verb and resource (save the owner's pricing rules for their assistant) and pins the format as free-text 'in their own words', which distinguishes it in kind from numeric siblings such as shops_setFieldCosts. It does not explicitly name or contrast a sibling, so it stops short of 5.

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 usage conditions: owner-only, clearing via null or empty string, and the scope boundary that quotes.comparables and quotes.draftFromVisit read the rules while Doing Work does not. No explicit alternative-rule tool is named, so there is no when-to-use-this-instead routing.

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.