Skip to main content
Glama

generate-example

Generate an example JSON request body for a REST API endpoint by providing its HTTP method and path.

Instructions

Generate an example JSON request body for an API endpoint. Example: method="POST", path="/objects/accounts-payable/vendor"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesAPI endpoint path
methodYesHTTP method

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior2/5

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

With no annotations provided, the description must fully disclose behavioral traits. It states the action but does not mention whether the example is generated based on the endpoint's schema, if any authentication or prerequisites are needed, or what the output looks like. This is a significant gap for a 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.

Conciseness5/5

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

The description is a single sentence with a concrete example, front-loading the purpose. Every word is functional, making it highly concise and well-structured.

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

Completeness4/5

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

With only two required parameters and no output schema, the description is adequate for an agent to call the tool correctly. It could add context about the source of the example (e.g., based on the endpoint's schema) but is not severely deficient.

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 description coverage is 100%, so the schema already documents both parameters. The description's example reinforces their usage but does not add semantic information beyond the schema's own descriptions. Baseline 3 is appropriate.

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 (Generate) and resource (example JSON request body for an API endpoint) with a concrete example. It differentiates from siblings like get-endpoint-docs or get-schema, which retrieve documentation or schemas rather than generate examples.

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 usage through its example but does not explicitly state when to use this tool versus alternatives or when not to use it. It lacks any mention of conditions or exclusions, so guidance is minimal.

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