Skip to main content
Glama
tokportal

tokportal-mcp

Official

tokportal_delete_comment_task

DestructiveIdempotent

Cancel a pending comment task to stop scheduled work and trigger an automatic credit refund. Use this to safely remove queued tasks you own and avoid unwanted execution.

Instructions

Cancel a pending comment task. Cancels an owned task only while its status is pending. The terminal transition and refund of the task's exact stored credit cost commit atomically and are idempotent. Current tasks refund 1 credit; credits_refunded remains authoritative for historical tasks. Cancellation remains available when Coverage is paused because it stops pending work rather than executing it. Reuse the same Idempotency-Key after an uncertain transport result.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesComment task ID.
Idempotency-KeyNoStrongly recommended for this credit or workflow mutation. Use one unique key per logical request and reuse the same key only with the same method, path, query, and body after an uncertain result. Maximum 255 characters.
idempotency_keyNoOptional Idempotency-Key header for safe retries.
Behavior5/5

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

Annotations already mark destructiveHint=true and idempotentHint=true, but the description adds significant nuance: atomicity of terminal transition and refund, authoritative credits_refunded for historical tasks, and availability during Coverage pause. It also explains the idempotency key reuse after uncertain transport results, which is beyond the generic hint.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is four sentences, each packing essential information. It leads with the primary purpose, then details behavioral nuances and idempotency guidance. No fluff or redundancy; it's concise while being informative.

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 destructive, credit-affecting mutation with no output schema, the description covers all necessary aspects: conditions (pending, owned), atomicity, idempotency, refund amounts, behavior under paused coverage, and retry guidance. It is self-sufficient and leaves no obvious gaps for an agent to misuse the tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema covers all three parameters with descriptions (100% coverage). The description adds value by explicitly instructing to reuse the same Idempotency-Key after uncertain results, and it clarifies the refund semantics that relate to the 'id' parameter. While it doesn't elaborate on each parameter individually, the guidance on the idempotency key is a meaningful addition beyond the schema.

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?

The description opens with a precise verb+resource pair: 'Cancel a pending comment task.' This clearly distinguishes it from sibling tools like approve, dispute, or list comment tasks. It also states the scope: only owned tasks with pending status.

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?

It states when to use: cancel a pending owned task, and even mentions a specific edge case (when Coverage is paused). It does not explicitly name alternatives or say when not to use, but the context is clear from the sibling list. The condition 'owned task only while its status is pending' provides concrete guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tokportal/tokportal-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server