Skip to main content
Glama

PitCanary

Delete a building

delete_location
Destructive

Removes a building. Its rooms are not removed but are left without one. Archiving keeps everything and is the better choice unless the building is going for good. It takes two calls: the first changes nothing and returns what will happen with a confirm token, and the second, with the same arguments and that token, does it. Requires a PitCanary account.

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": {
      "location_id": "<location_id>"
    },
    "name": "delete_location"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoLeave this out on the first call. That call changes nothing and returns a sentence saying what will happen plus a confirm token. Pass the token here, unchanged and with the same other arguments, only after the person has said yes to that sentence.
location_idYesThe building id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

The annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds substantial context beyond them: rooms survive the deletion orphaned, the operation is two-phase with a dry-run first call returning a confirm token, and a PitCanary account is required. These are exactly the non-obvious behaviors an agent needs before invoking an irreversible mutation.

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?

Five short sentences, front-loaded with the effect and the orphaned-rooms caveat before the alternative and the mechanics. Mild duplication with the schema's own confirm-token explanation, but the prose version is tighter and justifies its space.

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, two-phase mutation with no output schema, the description covers the side effect, the safe alternative, the confirmation protocol, and the auth prerequisite. Nothing an agent needs in order to call it correctly is missing.

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 explains the confirm parameter as part of a workflow ('the second, with the same arguments and that token, does it'), making the two-call contract salient rather than leaving it buried in one property doc. It adds workflow meaning, not new syntax.

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 a building') and immediately distinguishes it from the archive sibling by contrasting outcomes ('Archiving keeps everything'). An agent can tell delete_location apart from archive_location without consulting 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent: archiving is 'the better choice unless the building is going for good.' It names the alternative, the condition that selects it, and the consequence of choosing delete. This is the when/when-not/alternative pattern at full strength.

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