Skip to main content
Glama

Find pet by ID.

get_pet_by_id

Retrieve a single pet record by its numeric ID. Use it to look up pet details when you have the petId.

Instructions

Returns a single pet.

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": {
      "petId": "<petId>"
    },
    "name": "get_pet_by_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
petIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.1/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, yet it discloses only that one pet is returned. It says nothing about behavior for an unknown ID (error vs. empty), permission requirements, or whether the result is cached/live. That is a substantial gap for a retrieval tool with zero annotation coverage.

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?

The single sentence is front-loaded and free of padding, which is structurally fine. However, its brevity comes from under-specification rather than economy, so it earns only a middling score.

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?

With no annotations, no output schema, and an undocumented required parameter, the definition leaves an agent without enough information to call the tool confidently or interpret a failure. A retrieval tool this simple still needs ID semantics and not-found behavior spelled out.

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?

Schema description coverage is 0%, so the single petId parameter is documented nowhere except its name and int64 type. The description does not confirm that the ID is the pet's identifier, nor what format or range is valid, so it fails to compensate for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Returns a single pet" restates the name and title almost verbatim without adding the lookup-by-ID framing that actually distinguishes this tool. It does not separate it from retrieval siblings such as find_pets_by_status or find_pets_by_tags, so an agent learns little beyond 'this returns one pet.'

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 when-to-use guidance, no mention of the sibling list-based searches as alternatives, and no note on prerequisites such as needing a valid ID. The agent must infer that this is the single-record lookup versus the filtered-list tools.

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