Skip to main content
Glama

code_job_delete

DestructiveIdempotent

Delete the stored result, transcript and events for a finished job. Use it to clean up job records; it does not undo file changes or stop running processes.

Instructions

Delete the stored result, transcript and events for a finished job. This does not undo file changes or terminate an interrupted process.

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": {
      "jobId": "<jobId>"
    },
    "name": "code_job_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is covered; the description earns credit by specifying precisely what data disappears and, importantly, what side effects will NOT occur (no file rollback, no process termination). That scope clarification is the main risk an agent faces here. It stops short of stating permanence or whether the job record itself survives.

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?

Two tight sentences, front-loading the destructive action and following with the critical negative constraint. No filler or restatement of the tool name.

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 deletion with no output schema, the description covers the essential what-is-removed and what-is-not-affected facts. Remaining gaps (return value, behavior on invalid or in-progress job IDs) are minor given the tool's simplicity and the strong annotation coverage.

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 description coverage is 0%, so the UUID jobId parameter is documented only by its format and pattern in the schema. The description contributes indirectly by requiring a 'finished job', which implies a state constraint on the ID, but it never states whether a non-finished job ID is rejected or what happens on an unknown ID.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb (delete) and enumerates the exact resources removed: stored result, transcript, and events, scoped to a finished job. It implicitly separates itself from cancellation by stating it does not terminate a running process, though it never names the sibling tool that does.

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?

The phrase 'for a finished job' establishes the precondition for use, and the second sentence gives a clear exclusion: do not use this to stop work or revert files. The alternative for interrupted processes is implied rather than named, which keeps it short of fully explicit routing.

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