Skip to main content
Glama
CallRail MCP

CallRail MCP

by pghdma

delete_company

DestructiveIdempotent

Soft-delete a company by marking it disabled while retaining its records; use active-status filtering to exclude it afterward.

Instructions

Soft-delete a company. Status flips to 'disabled', records retained.

Mirrors delete_tracker semantics: CallRail's DELETE on companies is a soft-delete. Use list_companies(status="active") to filter out disabled companies after deletion.

Returns: {"deleted": True, "company_id": ..., "response": ...}.

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": {
      "company_id": "<company_id>"
    },
    "name": "delete_company"
  }
}

Input Schema

NameRequiredDescriptionDefault
account_idNo
company_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and idempotentHint=true, but the description adds the crucial nuance that the operation is non-destructive in practice: status becomes 'disabled' and records are retained. That materially changes how an agent should reason about calling it. It also sketches the return payload, which is beyond what annotations cover.

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 semantic (soft-delete) and no padding; the sibling reference and return note are compact. The multi-line formatting and the 'Mirrors delete_tracker' aside add slight noise but each element carries information.

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?

For a simple two-parameter mutation with an output schema and rich annotations, most of what an agent needs is present: safety semantics, post-deletion filtering, and return shape. The remaining gap is the undocumented account_id parameter, which the description should have covered given 0% schema coverage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for two parameters (account_id, company_id), so the description carries the full burden — yet it never explains what account_id means or when it is required versus optional. The only parameter-adjacent guidance is the list_companies(status="active") example, which does not describe this tool's own inputs.

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 opens with a precise verb+resource ('Soft-delete a company') and immediately specifies the resulting state ('Status flips to 'disabled', records retained'). It also connects to a sibling's semantics ('Mirrors delete_tracker') and names list_companies for post-deletion filtering, so the agent can distinguish it from generic delete operations.

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 provides clear operational context — this is a soft-delete and disabled companies can be filtered out with list_companies(status="active") — but stops short of explicit when-to-use/when-not-to-use framing (e.g., no statement about whether a hard delete exists or when deletion is inappropriate).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.