delete_api_token
Expire an API token by token ID through the Semaphore UI management API to revoke its access.
Instructions
Expires API token. DELETE /user/tokens/{token_id}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token_id | Yes |
Expire an API token by token ID through the Semaphore UI management API to revoke its access.
Expires API token. DELETE /user/tokens/{token_id}.
| Name | Required | Description | Default |
|---|---|---|---|
| token_id | Yes |
Changes observed during successful MCP inspections.
v0.1.0Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare destructiveHint=true, idempotentHint=true, and openWorldHint=true, so the safety profile is covered structurally. The description adds nothing beyond the HTTP endpoint — it doesn't say the token stops authenticating immediately, whether the action can be undone, or how errors are surfaced.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two short sentences, front-loaded with the action; nothing is padded. Terseness here is close to under-specification but the structure itself is sound.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a destructive, irreversible credential-removal tool with no output schema and an undocumented parameter, the description leaves out the sourcing of token_id and the consequence of the call — an agent has to infer both.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description is the only place token_id could be explained. It only echoes the path template; it doesn't say the id comes from list_api_tokens or what format it takes.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
'Expires API token' states a specific verb and resource, and the DELETE /user/tokens/{token_id} path removes ambiguity about what object is affected. It distinguishes adequately from siblings like delete_access_key and create_api_token without needing to name them.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this versus alternatives (e.g. revoking via update, or delete_access_key for other credential types), and no mention of prerequisites or irreversibility in the description text itself.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.