Skip to main content
Glama

swagger-petstore---openapi-3.0.getPetById

Read-onlyIdempotent

Retrieve a pet's details by its unique ID from the Swagger Petstore. Use this to look up specific pet information when you know the ID.

Instructions

Find pet by ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultNoResponse from the tool
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds no additional behavioral context such as auth requirements, error handling, or what happens if the pet is not found. It also fails to clarify how the pet ID is supplied given the empty input schema.

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?

The description is a single, short sentence ('Find pet by ID.') that is free of redundancy. It could be more informative, but in terms of conciseness and front-loading the core purpose, it is efficient.

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

Completeness1/5

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

The tool is a get-by-ID operation, but the input schema is empty and the description does not indicate how the ID is provided. Without this information, the agent cannot correctly invoke the tool. The output schema exists but is not enough to compensate for the missing input mechanism. This is a significant completeness failure.

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?

The input schema has zero parameters, yet the description references 'by ID.' Since the schema does not define an ID field, the description should have explained how the ID is passed (e.g., path parameter or context). The description adds no parameter meaning beyond the name, leaving a critical gap.

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 'Find pet by ID.' clearly states the action (find) and resource (pet) with a qualifier (by ID), which distinguishes it from update/delete/create operations. However, it is very terse and does not elaborate on what 'by ID' means in terms of input, though the tool name reinforces the purpose.

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 is given on when to use this tool versus alternatives. Sibling tools like petstore-api.getPetById and other pet operations exist, but the description offers no comparison or contextual clues to help an agent choose this tool.

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/mirajmahmudul/agentdevx-sdk'

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