Skip to main content
Glama

delete_investigation

DestructiveIdempotent

Delete one saved investigation using investigationId and expectedVersion. This removes the stored investigation, not project graph nodes or local files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
detailsNoOptional bounded metadata using only the listed fields, such as summary, status and referenceIds. Not arbitrary command arguments or source content.
projectIdYesOwned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.
sessionIdNoOwned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.
executionIdNoOwned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.
idempotencyKeyYesCaller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.
expectedVersionYesCurrent version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying.
investigationIdYesOwned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / details / description
      Added value: +"Optional bounded metadata using only the listed fields, such as summary, status and referenceIds. Not arbitrary command arguments or source content."
    • addedInput schema / properties / details / properties / status / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
    • addedInput schema / properties / executionId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
    • addedInput schema / properties / expectedVersion / description
      Added value: +"Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying."
    • addedInput schema / properties / idempotencyKey / description
      Added value: +"Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action."
    • addedInput schema / properties / investigationId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
    • addedInput schema / properties / projectId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
    • addedInput schema / properties / sessionId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is covered. The description adds genuinely useful context beyond that by pinning the blast radius: it removes the stored investigation record specifically, not project graph nodes or local files. It still says nothing about whether the delete is recoverable, what happens to linked findings, or required permissions.

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 the action and the two key identifiers, followed immediately by the scope limitation. Every clause earns its place and there is no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, version-guarded mutation with seven parameters, no output schema, and no annotations explaining conflict behavior, the description covers the resource scope adequately but omits recoverability, the effect on related records, and the retry/version-conflict workflow (left to the schema). An agent can call it correctly, but with some inference.

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 100%, so the schema already documents all seven parameters, including idempotencyKey retry semantics and expectedVersion conflict behavior. The description only names investigationId and expectedVersion without adding format, ownership, or conflict-handling detail beyond the schema, so baseline 3 applies.

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?

States a specific verb (delete) and resource (one saved investigation), plus a negative scope boundary ('not project graph nodes or local files') that separates it from graph-mutating siblings like clear_project_graph or patch_project_graph. It does not name a sibling alternative (e.g. delete_finding), but the scope is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the verb and the boundary statement, which tells the agent this is not the tool for removing graph nodes or local files. There is no explicit when-to-use/when-not guidance, no mention of prerequisites such as reading the record first for expectedVersion, and no routing to delete_finding or delete_context_note for adjacent resources.

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