Skip to main content
Glama

Delete secret grant

grant_secrets_delete
DestructiveIdempotent

Deletes a single project grant while retaining the secret, its versions, the target project, and all other grants.

Instructions

Deletes only this project grant. The secret, its versions, the target project, and other grants are retained, and there are no dependency blockers.

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": {
      "grantID": "<grantID>",
      "orgID": "<orgID>",
      "secretID": "<secretID>"
    },
    "name": "grant_secrets_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
orgIDYesOrganization ID (org_...).
grantIDYesSecret grant ID (sgr_...).
secretIDYesSecret ID (sec_...).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.10
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Empty on success: the operation returns no data.",
      +  "type": "object"
      +}
  2. Changed3 schema fields changedv0.1.1
    • addedInput schema / properties / grantID / description
      Added value: +"Secret grant ID (sgr_...)."
    • addedInput schema / properties / orgID / description
      Added value: +"Organization ID (org_...)."
    • addedInput schema / properties / secretID / description
      Added value: +"Secret ID (sec_...)."
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true and idempotentHint=true, so the bar is lower, yet the description adds real value by enumerating exactly what is NOT destroyed — the secret, its versions, the target project, and other grants — plus the assurance that there are no dependency blockers. It stops short of noting required authorization or whether the response differs when the grant is already absent.

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 short sentences, zero filler, and the blast-radius statement (what is retained) is placed immediately after the action so the most decision-relevant fact is front-loaded.

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 destructive three-parameter delete with an output schema present, the essential safety information — the exact blast radius and the absence of dependency blockers — is covered, and return values need not be described. A minor gap remains around authorization requirements and behavior when the grant does not exist, which the idempotent hint only partially covers.

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% and every parameter carries its own format description and pattern (org_/sgr_/sec_ prefixes), so the schema does the work. The description adds no per-parameter meaning such as which ID scopes the deletion or whether mismatched IDs across parameters cause an error, which is the baseline-3 outcome.

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?

"Deletes only this project grant" gives a specific verb plus resource, and the follow-up sentence distinguishes the operation from secrets_delete by stating that the secret, its versions, the target project, and other grants survive. It never names a sibling tool explicitly, so the differentiation is implied by scope rather than stated.

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 only implied: the retention statement tells an agent this is the narrow, grant-only removal path, which suggests when to prefer it over secrets_delete. There is no explicit when-to-use/when-not guidance, no note about permissions or preconditions (e.g., whether the grant must already exist), and no mention of reversibility.

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