Skip to main content
Glama
delano
by delano

update_collection_response

Update response fields (name, code, status) in a collection by providing only the values to change.

Instructions

Update a response in a collection. Acts like PATCH, only updates provided values.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collection_idYesCollection ID
response_idYesResponse ID
responseYesResponse details to update

Implementation Reference

  • Main handler function for 'update_collection_response'. Sends a PUT request to /collections/{collection_id}/responses/{response_id} with the response data to update.
    async updateCollectionResponse(args: any): Promise<ToolCallResponse> {
      const response = await this.client.put(
        `/collections/${args.collection_id}/responses/${args.response_id}`,
        args.response
      );
      return this.createResponse(response.data);
    }
  • Input schema definition for 'update_collection_response' tool. Defines required fields: collection_id, response_id, and response (object with optional name, code, status).
    {
      name: 'update_collection_response',
      description: 'Update a response in a collection. Acts like PATCH, only updates provided values.',
      inputSchema: {
        type: 'object',
        properties: {
          collection_id: {
            type: 'string',
            description: 'Collection ID',
          },
          response_id: {
            type: 'string',
            description: 'Response ID',
          },
          response: {
            type: 'object',
            description: 'Response details to update',
            properties: {
              name: { type: 'string' },
              code: { type: 'number' },
              status: { type: 'string' }
            }
          }
        },
        required: ['collection_id', 'response_id', 'response'],
      },
    },
  • Registration/case-mapping of the tool name 'update_collection_response' to the handler method updateCollectionResponse() inside the handleToolCall dispatcher.
    case 'update_collection_response':
      return await this.updateCollectionResponse(args);
  • Helper createResponse() method used by updateCollectionResponse to wrap API response data into a ToolCallResponse format.
    private createResponse(data: any): ToolCallResponse {
      return {
        content: [{ type: 'text', text: JSON.stringify(data, null, 2) }]
      };
    }
Behavior4/5

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

No annotations exist, so description carries full burden. Discloses PATCH semantic (partial update), which is key behavioral info not in schema. No contradictions.

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?

Two sentences, no fluff. Front-loaded with verb and resource. Every sentence adds value.

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

Completeness4/5

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

For a patch tool with 3 required params (collection_id, response_id, response) and no output schema, the description is concise yet covers the core behavior. Could mention that omitted fields remain unchanged, but overall adequate.

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 baseline is 3. Description adds value by clarifying that parameters are partial updates ('only updates provided values'), which is beyond the schema's field descriptions.

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?

Clearly states verb 'Update', resource 'response in a collection', and adds behavior 'Acts like PATCH, only updates provided values'. Distinct from siblings like create_collection_response and delete_collection_response.

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?

Provides explicit guidance on PATCH-like behavior (only updates provided values). Understandably implies when to use (partial update) but does not explicitly list alternatives or when-not-to-use.

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