Skip to main content
Glama
delano
by delano

update_api_comment

Update an existing API comment by providing the API ID, comment ID, and new content (up to 10,000 characters).

Instructions

Update an existing API comment (max 10,000 characters)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
apiIdYesAPI ID
commentIdYesComment ID
contentYesUpdated comment text (max 10,000 characters)

Implementation Reference

  • The updateApiComment handler method that executes the tool logic: validates required params (apiId, commentId, content) and makes a PUT request to /apis/{apiId}/comments/{commentId}.
    async updateApiComment(args: any): Promise<ToolCallResponse> {
      if (!args.apiId || !args.commentId || !args.content) {
        throw new McpError(ErrorCode.InvalidParams, 'apiId, commentId, and content are required');
      }
      const response = await this.client.put(
        `/apis/${args.apiId}/comments/${args.commentId}`,
        { content: args.content }
      );
      return this.createResponse(response.data);
    }
  • Tool definition with name 'update_api_comment', description, and inputSchema (apiId string, commentId number, content string - all required).
    {
      name: 'update_api_comment',
      description: 'Update an existing API comment (max 10,000 characters)',
      inputSchema: {
        type: 'object',
        properties: {
          apiId: {
            type: 'string',
            description: 'API ID',
          },
          commentId: {
            type: 'number',
            description: 'Comment ID',
          },
          content: {
            type: 'string',
            description: 'Updated comment text (max 10,000 characters)',
          },
        },
        required: ['apiId', 'commentId', 'content'],
      },
    },
  • Route registration in handleToolCall switch statement mapping 'update_api_comment' to the updateApiComment method.
    case 'update_api_comment':
      return await this.updateApiComment(args);
Behavior2/5

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

With no annotations, the description must disclose behavior. It only adds a character limit, omitting idempotency, partial update semantics, error handling (e.g., missing comment), or side effects.

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?

A single, informative sentence with no unnecessary words. Front-loads the action and constraint efficiently.

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?

Lacks details on return value, error states, and behavioral guarantees. Given no output schema and no annotations, the description is incomplete for an update operation.

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%, so baseline is 3. The character limit is already present in the schema description. No additional semantic value is provided.

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 clearly states the action ('Update an existing API comment') and specifies a constraint (max 10,000 characters). It effectively distinguishes from sibling tools like create_api_comment and delete_api_comment.

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?

No guidance on when to use this tool versus alternatives (e.g., partial update vs. full replacement) or prerequisites. The description offers no context for agent decision-making.

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/delano/postman-mcp-server'

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