Skip to main content
Glama

Delete an approved Request

delete_approved_query

Delete an approved query. The query will be soft-deleted and no longer available for execution. Any pending update suggestions for this query will be automatically rejected with reason "Original query was deleted".

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": {
      "query_id": "<query_id>"
    },
    "name": "delete_approved_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
query_idYesUUID of the query to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing two non-obvious behaviors: the deletion is soft (so the record is not physically removed, consistent with destructiveHint=false) and any pending update suggestions are automatically rejected with the literal reason "Original query was deleted". This cascade side effect is exactly the kind of consequence an agent could not infer from the schema or hints, though idempotency (idempotentHint=false) is not discussed.

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 short sentences, front-loaded with the action, then the soft-delete consequence, then the cascade side effect. Every sentence contributes new information and nothing is repeated from the schema or annotations.

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 mutation with full annotation coverage and no output schema, the description supplies the essential behavioral facts: soft delete, loss of executability, and automatic rejection of pending suggestions. It stops short of saying whether the deletion can be undone or what the call returns, which are the only remaining gaps.

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% — query_id is fully documented as the UUID of the query to delete — so the structured field carries the parameter semantics. The description adds no format, sourcing, or validation detail beyond what the schema already says.

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 and resource ("Delete an approved query") and immediately qualifies the semantics as a soft delete, which distinguishes it from a hard removal. It does not explicitly contrast itself with sibling deletion tools (delete_app, delete_app_version, delete_column_metadata) or with reject_query_suggestion, but the verb+resource pairing 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 Guidelines2/5

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

There is no when-to-use/when-not guidance, no statement of prerequisites (e.g. that the query must be approved), and no pointer to alternatives such as rejecting or updating instead of deleting. Usage is only implied by the tool name and the word "delete".

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