Skip to main content
Glama

Update an existing pet.

update_pet

Update an existing pet's details by its ID, including name, photos, status, category, and tags. Use it to modify stored pet records when information changes.

Instructions

Update an existing pet by Id.

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": {
      "body": "<body>"
    },
    "name": "update_pet"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses almost nothing. It does not state whether this is a full replacement or a partial merge, what happens to omitted fields, whether an API key or store permission is required, or what errors occur for unknown Ids.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single short sentence with no wasted wording, so it is structurally clean and front-loaded. The brevity, however, comes at the cost of substance for a mutation tool with a complex body payload.

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 a write operation, a nested Pet object, no annotations, and no output schema, the definition should at minimum describe replacement semantics and required fields. As written, an agent has to open the schema and guess at overwrite behavior before calling it safely.

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

Parameters1/5

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

There is one parameter, a nested Pet body, and schema description coverage is 0% – the schema gives required fields and enums but no narrative on the body. The description's only hint is 'by Id', which implies the Id travels inside the body, and it never mentions required name/photoUrls or the status enum.

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?

The description names a specific verb and resource ('Update an existing pet by Id'), which is enough to separate it from add_pet, delete_pet, and get_pet_by_id. It does not, however, differentiate itself from the sibling update_pet_with_form, leaving the agent to guess which update path applies.

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?

There is no explicit when-to-use or when-not-to-use guidance. The phrase 'an existing pet' weakly implies the record must already exist, but nothing tells the agent to prefer update_pet_with_form when form-encoded input is needed, nor what to do for a pet that does not exist.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.