Skip to main content
Glama

generate_schema_from_description

Generate a JSON schema from a natural language description to define how PDF data is extracted. Use with create_schema to save and reuse.

Instructions

AI-generate a JSON schema from a description (POST /api/v1/schemas/generate). Requires API key, payment method, and prepaid wallet balance. Debits the same wallet ledger as PDF/OCR parsing on each successful generation. Pair with create_schema to persist.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refinementNo
descriptionYes
response_modeNocompact
selected_textNo
current_schemaNo
max_estimated_tokens_overrideNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Despite no annotations, the description discloses important behavioral traits: requires authentication/payment and debits a wallet ledger on success. This adds significant context beyond the name and schema, though it could mention error handling or rate limits.

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 two sentences, front-loading the purpose and adding prerequisites/side effects in the second. It is concise but omits parameter details, which would improve it without harming conciseness.

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 tool has 6 optional parameters and no annotations, the description fails to provide sufficient context for parameter usage. While an output schema exists, the description does not mention the output format or how optional parameters affect generation.

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?

With 6 parameters and 0% schema description coverage, the description only implicitly covers the 'description' parameter. It provides no explanation for refinement, response_mode, selected_text, current_schema, or max_estimated_tokens_override, leaving the agent without guidance.

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 tool generates a JSON schema from a description, includes the HTTP endpoint, and explicitly pairs with create_schema for persistence, distinguishing it from siblings.

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

Usage Guidelines4/5

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

The description lists prerequisites (API key, payment method, wallet balance) and notes wallet debiting, providing clear context for when to use or avoid the tool. However, it does not explicitly exclude alternative tools beyond pairing with create_schema.

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/risha-max/0xpdf-mcp'

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