Skip to main content
Glama

Update an existing pet.

update_pet
Idempotent

Update an existing pet's details including name, category, tags, and status by providing the pet ID.

Instructions

Update an existing pet by Id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
photoUrlsYes
idNo
categoryNo
tagsNo
statusNopet status in the store
Behavior3/5

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

Annotations indicate idempotentHint and openWorldHint, but the description does not clarify whether this is a full replacement or partial update. It adds no behavioral context beyond what annotations already convey.

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?

The description is a single, concise sentence that directly states the purpose. However, it could be slightly expanded to include context about the required ID without becoming verbose.

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?

Given the complexity of 6 parameters and no output schema, the description is too minimal. It does not explain whether the update replaces or merges, how to handle optional IDs, or what the response contains. Sibling tool information is not leveraged.

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?

With only 17% schema description coverage, the description provides no additional meaning for the six parameters. Only the 'status' field has a description in the schema. The description should compensate but does not.

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'), the resource ('pet'), and the key identifier ('by Id'). It distinguishes from sibling tools like add_pet (create) and update_pet_with_form (different endpoint).

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

Usage Guidelines3/5

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

The description implies use when updating an existing pet by its ID, but provides no guidance on when not to use it, such as preferring update_pet_with_form for partial updates or add_pet for new pets.

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/mroops0111/openapi-mcp-gateway'

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