Skip to main content
Glama

Delete a report

delete_report
Destructive

Deletes a report in CodeGene for good: it leaves the Reports page, its public links stop working in the same step, and it cannot be undone. Only the person who created it and the workspace's owners and admins may delete it; anyone else is refused for their role, and a report the person cannot read is not found. Ask the person before deleting a report they did not ask you to delete.

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": {
      "report_id": "<report_id>"
    },
    "name": "delete_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
report_idYesThe report (list_reports gives ids).
workspace_idNoWorkspace id from whoami; omit when there is one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description goes well beyond them: deletion is irreversible, the report disappears from the Reports page, and public links break in the same step. It also discloses authorization failure modes (role refusal, not-found for unreadable reports) and advises confirmation, which are behaviors annotations cannot express.

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 sentences, front-loaded with consequences (permanence, broken links, irreversibility) before permissions and the confirmation prompt. Every clause adds actionable information; nothing is redundant with the title or annotations.

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 two-parameter destructive delete with no output schema, the description covers consequences, authorization, not-found semantics, and confirmation etiquette. An agent has everything needed to decide whether to call it and what will happen if it does.

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?

Both parameters are fully documented in the schema (report_id with a pointer to list_reports, workspace_id with an omission rule), so the description carries no additional parameter burden. It adds no syntax or format detail beyond what the schema already states, which is the expected baseline at 100% coverage.

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+resource ('Deletes a report') and immediately scopes it as permanent ('for good'), which separates it from soft alternatives like unsharing or ending a link. The clause about public links ceasing to work further pins down exactly what object and side effects are involved.

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?

Gives concrete when-not conditions: only the creator and workspace owners/admins may delete, everyone else is refused, and unreadable reports read as not-found. It also adds an interaction rule ('Ask the person before deleting a report they did not ask you to delete'). It stops short of naming a specific alternative tool for users who only want to revoke access, so it is strong but not exhaustive.

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