Skip to main content
Glama

create_schema

Save a JSON schema to your 0xPdf account for use in PDF parsing. Works with schemas from description generation or custom schemas.

Instructions

Save a JSON schema to your account (POST /api/v1/schemas). Requires API key. No wallet charge per save; subject to max saved schemas limit. Use after generate_schema_from_description or for hand-written schemas.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
is_defaultNo
schema_defYes
response_modeNocompact
max_estimated_tokens_overrideNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations, the description covers API key requirement, cost, and limits. However, it omits details on error behavior, idempotency, or what the output contains, which are relevant for a mutation tool.

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?

Concise three-sentence description, front-loaded with the main action. Slightly dense but not verbose.

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

Completeness3/5

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

For a tool with 5 parameters and an output schema, the description lacks details on response format, error handling, and how to use optional parameters. It mentions limits but not how to avoid them.

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%, yet the description only references the schema_def parameter implicitly. It does not explain is_default, response_mode, or max_estimated_tokens_override, leaving the agent without parameter 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?

Clearly states the verb 'Save' and resource 'JSON schema to your account', includes endpoint and prerequisite. Distinguishes from sibling tool generate_schema_from_description.

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?

Explicitly recommends use after generate_schema_from_description or for hand-written schemas, providing context on when to use. Also mentions no wallet charge and max limit, but does not explicitly state when not to use.

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