Skip to main content
Glama

Backtest Vault

Delete a run

delete_run
DestructiveIdempotent

What it does: deletes one run from the user's vault. Cannot be undone. Returns: {ok: true}, or 404 if the run is not in this vault. When to use: only when the user explicitly asks to delete a specific run; confirm the run_id with them first.

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": {
      "run_id": "<run_id>"
    },
    "name": "delete_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the destructiveHint/idempotentHint annotations, it discloses irreversibility ('Cannot be undone') and the failure mode (404 if the run is not in this vault) plus a confirmation protocol. It does not mention permissions or auth requirements, which is the main remaining gap for a destructive operation.

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?

Short and front-loaded with labeled sections (what it does, returns, when to use), so an agent can scan the destructive warning and precondition quickly. The labels are slightly mechanical but nothing is wasted.

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 single-parameter destructive tool with no output schema, the definition covers the effect, irreversibility, return value, and the primary error case. Only auth/permission expectations are unaddressed.

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

Parameters3/5

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

Schema coverage is 0%, so the description must carry run_id's meaning; it conveys that run_id must identify a run within the user's vault and should be confirmed with the user before calling. It does not describe the identifier's format or where to obtain it (e.g., from list_runs), leaving part of the gap.

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 ('deletes') and resource ('one run from the user's vault'), with scope ('one run') that clearly separates it from read-oriented siblings like get_run, list_runs, and compare_runs.

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?

Explicitly restricts usage ('only when the user explicitly asks to delete a specific run') and adds a required precondition ('confirm the run_id with them first'). It stops short of naming an alternative tool, so it is clear context rather than a full when/when-not/alternative map.

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