Skip to main content
Glama

updateSpecProperties

Update an API specification's properties, such as its name, using the spec ID and new values.

Instructions

Updates an API spec's properties (e.g., name).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
specIdYesSpec ID
nameYesNew spec name

Implementation Reference

  • Handler class UpdateSpecPropertiesTool that implements the updateSpecProperties tool. It sends a PATCH request to Postman API's /apis/{specId} endpoint to update an API spec's name property.
    class UpdateSpecPropertiesTool(ToolHandler):
        """Update API spec properties"""
        
        def __init__(self):
            super().__init__("updateSpecProperties")
        
        def get_tool_description(self) -> Tool:
            return Tool(
                name=self.name,
                description="Updates an API spec's properties (e.g., name).",
                inputSchema={
                    "type": "object",
                    "properties": {
                        "specId": {
                            "type": "string",
                            "description": "Spec ID"
                        },
                        "name": {
                            "type": "string",
                            "description": "New spec name"
                        }
                    },
                    "required": ["specId", "name"]
                },
            )
        
        async def run_tool(self, args: dict) -> list[TextContent]:
            spec_id = args["specId"]
            body = {"name": args["name"]}
            
            result = await postman_api_call("PATCH", f"/apis/{spec_id}", body=body)
            return [TextContent(type="text", text=json.dumps(result, indent=2))]
  • Registration of UpdateSpecPropertiesTool() in the register_all_tools() function within the Specs section.
    UpdateSpecPropertiesTool(),
  • Input schema definition for the tool: requires specId (string) and name (string) parameters.
    def get_tool_description(self) -> Tool:
        return Tool(
            name=self.name,
            description="Updates an API spec's properties (e.g., name).",
            inputSchema={
                "type": "object",
                "properties": {
                    "specId": {
                        "type": "string",
                        "description": "Spec ID"
                    },
                    "name": {
                        "type": "string",
                        "description": "New spec name"
                    }
                },
                "required": ["specId", "name"]
            },
        )
Behavior2/5

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

No annotations provided; description only states it is an update but does not disclose side effects, authorization needs, or validation behavior.

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?

Single sentence with verb and resource front-loaded. No unnecessary words, highly efficient.

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

Completeness3/5

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

Description is minimal; missing return value or success/failure info. However, for a simple two-parameter update, it may be adequate.

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 coverage is 100% and describes both parameters. Description adds minimal value with 'e.g., name' which is already in 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?

Description clearly states verb 'Updates' and resource 'API spec's properties' with example 'name'. It distinguishes from sibling tools like createSpec or updateSpecFile.

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. With many spec-related siblings, explicit context or exclusions are missing.

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

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