Skip to main content
Glama

MySaaS Blog

Create comment

comment_create
Destructive

Create a comment on a published post.

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": {
      "postId": "<postId>",
      "text": "<text>"
    },
    "name": "comment_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
postIdYes
imageUrlNo
idempotencyKeyNoOptional retry key. Reuse the same key with the same payload to deduplicate agent retries.

Output Schema

NameRequiredDescriptionDefault
commentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.7/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, openWorldHint=true and idempotentHint=false, so the safety profile is covered. The description adds only the 'published post' constraint and says nothing about what the destructive flag means here, whether the comment is immediately public, or how the idempotencyKey parameter relates to the declared idempotentHint=false — an ambiguity the description could have resolved.

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?

A single front-loaded sentence with zero filler, so it reads cleanly. Its brevity is a symptom of under-specification rather than wasteful wording.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists so return values need no explanation, but for a four-parameter mutation with a destructive annotation and 25% schema coverage the description is too thin. It omits attachment handling, retry/deduplication behavior, and publishing/visibility implications that an agent needs before invoking it.

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

Parameters2/5

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

Schema description coverage is only 25% (only idempotencyKey is documented inline), so the description must compensate but does not: text content format, postId format, and the existence and purpose of imageUrl are never mentioned. It implies a text body on a post but adds no meaning beyond the parameter names.

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 ('Create') and resource ('a comment') plus the target scope ('on a published post'), which is enough for an agent to distinguish it from listing tools like comments_list. It stops short of naming or contrasting any sibling explicitly.

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?

The only guidance is an implicit precondition that the post must be published; there is no statement of when to prefer this over other flows, no prerequisites such as auth or moderation, and no exclusions. An agent must infer everything about eligibility and alternatives.

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