Skip to main content
Glama

Delete a Trained Model (destructive)

delete_model
DestructiveIdempotent

Destructive: deletes one of this account's trained models for good; it cannot be undone.

Frees a saved-model slot (the free plan keeps 2). A live model is refused: undeploy_model it first. Calling it again, or for a stem that is not this account's, deletes nothing and answers deleted false, already_absent true. Nothing is charged.

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": {
      "stem": "<stem>"
    },
    "name": "delete_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
stemYesA model id from list_models or train_strategy, e.g. 14_EURUSD_15min_Model_3.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare destructiveHint and idempotentHint true, but the description goes well beyond them by disclosing consequences (permanent, frees a saved-model slot, free plan keeps 2), the refusal condition for live models, the exact return flags on a no-op, and that nothing is charged. This is the kind of post-annotation context that materially changes an agent's decision to call it.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with the destructive warning, then the slot/refusal behavior, then the no-op semantics. No filler and no restatement of the name or schema.

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 single-parameter destructive tool with an output schema, everything an agent needs is present: permanence, prerequisites, slot accounting, cost, and the no-op outcome. Return values are additionally hinted at (deleted, already_absent) even though the output schema would have sufficed.

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% and the stem parameter is already documented with an example id, so the schema does the heavy lifting. The description still adds meaning beyond the schema by stating that a stem not belonging to this account resolves to a no-op rather than an error, which clarifies the ownership scoping of that parameter.

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 states a specific verb and resource ("deletes one of this account's trained models") and immediately scopes it as permanent. It also implicitly separates this tool from deploy-related siblings by noting live models must go through undeploy_model first, so an agent can tell it apart without inspecting schemas.

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?

Explicit preconditions are given: a live model is refused and must be undeployed first via the named sibling undeploy_model. It also covers the repeat-call case ("calling it again ... answers deleted false, already_absent true"), which is exactly the when/when-not guidance an agent needs before committing to a destructive action.

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