Skip to main content
Glama

Sergio by Serviche

Remove a field worker's scheduling rule

remove_staff_scheduling_rule
Idempotent

Removes one plain-English scheduling rule (ruleId, from add_staff_scheduling_rule or read staff_scheduling_rules) from a field worker (staff_id), as remove on their Rules tab does. Answers the rules left. Pass the same idempotency_key when retrying. An owner-level change: Sergio tells the owner after it is made.

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": {
      "staff_id": "<staff_id>",
      "ruleId": "<ruleId>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "remove_staff_scheduling_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNoWhy you are doing this, in one sentence. The owner sees it in the notice Sergio sends after the change.
ruleIdYes
staff_idYes
idempotency_keyYesYour id for this operation (8-128 of A-Z a-z 0-9 . _ : -). Reuse it on every retry of the same operation; use a new one for a new operation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations, it discloses the return content ('Answers the rules left'), a side effect (an owner-level change that triggers a notice from Sergio to the owner), and the retry contract for idempotency_key. It does not say whether the removal is reversible or how to restore a rule, which is the main remaining gap for a removal tool.

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 core action, then sources, return value, retry rule, and side effect, in a single compact paragraph with no filler. The terse phrasing ('Answers the rules left') is efficient but slightly clipped, and the internal reference to Sergio assumes the agent knows that persona.

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 supplies the return summary and the owner-notification side effect, which is what an agent needs before calling. Missing only reversibility/undo information and any explicit confirmation requirement for a mutation the annotations mark non-destructive.

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 50%, but the description compensates: it explains what ruleId refers to and where to get it, whose rule is removed via staff_id, and that the same idempotency_key must be reused on retries. The optional `reason` parameter is not discussed in the description, but the schema itself explains that the owner sees it in the notice.

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 specific verb and resource ('Removes one plain-English scheduling rule ... from a field worker') and scopes it to a single rule identified by ruleId. It implicitly distinguishes itself from the sibling add_staff_scheduling_rule by naming it as the source of the id, and the description of the effect ('as remove on their Rules tab does') grounds it in concrete product behavior.

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?

Tells the agent exactly where ruleId comes from (add_staff_scheduling_rule or read staff_scheduling_rules) and gives retry guidance via idempotency_key. It does not spell out when not to remove a rule (e.g., preference for editing, or need for confirmation), so it falls short of the top mark.

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