Skip to main content
Glama
tokportal

tokportal-mcp

Official
by tokportal

tokportal_delete_comment_task

DestructiveIdempotent

Cancel a pending comment task and receive a refund of the stored credit cost. Idempotent and safe to retry after uncertain transport results.

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?

The description goes far beyond the annotations, which already indicate idempotentHint=true and destructiveHint=true. It explains the atomic commit and refund mechanism, idempotency behavior, the distinction between current and historical task refunds, and the rationale for availability during paused Coverage. This is exemplary transparency for a credit-mutating operation.

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?

The description is compact yet information-dense, with front-loaded purpose. Every sentence adds essential context—behavioral guarantees, credit refund details, availability edge case, and retry guidance. No wasted words.

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?

Given the tool's simplicity (one required parameter, no output schema), the description is complete. It covers the action, constraints, behavioral nuances, idempotency, error handling advice, and edge cases. There is no missing information for a competent agent to invoke this tool correctly.

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?

Schema coverage is 100%, so the baseline is 3. The description adds value by explaining the idempotency key reuse pattern beyond the schema's description, and reinforces the 'owned task' constraint. However, it does not detail the format or constraints of the 'id' parameter beyond the schema, which is fine given high coverage.

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 uses a specific verb ('Cancel') and resource ('pending comment task'), clearly distinguishing it from sibling tools like tokportal_create_comment_tasks, tokportal_get_comment_task, tokportal_approve_comment_task, and tokportal_dispute_comment_task. It explicitly states the action, the resource, and the required state ('pending').

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

Usage Guidelines5/5

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

The description provides extensive when-to-use guidance: it cancels owned tasks only, only while status is pending, and remains available when Coverage is paused. It doesn't explicitly list alternatives, but the context implies this is the only cancellation tool among siblings, making the guidance clear.

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-python'

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