Skip to main content
Glama
acrylicfiddle

x402tools MCP Server

Extract Text (OCR)

image.ocr
Read-onlyIdempotent

Extract text from images using OCR. Provide a public image URL or base64-encoded image data to recognize text in multiple output formats, with cost of $0.05 USDC on Base.

Instructions

Extract text from an image using OCR. Costs $0.05 USDC on Base.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoPublic image URL to OCR (provide url OR image)
imageNoBase64-encoded image data (provide url OR image)
formatNoOutput formattext
_paymentNoBase64-encoded signed v2 PaymentPayload (the value you'd put in the PAYMENT-SIGNATURE HTTP header). Use @x402/evm or @x402/fetch to sign locally with your own wallet — your private key never leaves your machine. Get the requirements from a first call without _payment, then retry.
languageNoOCR language (ISO 639-3, e.g. eng)eng

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoError message when the call failed.
resultNoRaw JSON payload returned by the x402 service on a successful, paid call.
networkNoSettlement network for the x402 payment (base).
serviceNoUnderlying x402tools service that handled the call.
price_usdcNoPrice charged for this call, in USDC on Base.
requirementsNox402 payment requirements (scheme, network, amount, payTo, asset) when payment_required is true.
payment_requiredNoTrue when the call needs an x402 payment before it will run.
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, and openWorldHint=true — the safety profile is fully covered. The description adds value by disclosing the cost ($0.05 USDC on Base), which is genuinely useful behavioral information an agent wouldn't know from annotations alone. The _payment parameter flow is also referenced in the schema though not the description.

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?

Two sentences, zero wasted words. The first sentence states the core function and the second adds the key cost information. Every word earns its place and the description is front-loaded with the primary purpose.

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?

The tool has a full input schema covering 5 params, an output schema exists, and annotations fully cover read-only/idempotent/open-world behavior. With an output schema present, the description needn't explain return values. The only potential gap is guidance on format choices or language nuances, but given the rich schema and annotations, the description is adequate for agent selection and invocation.

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 all 5 parameters are already documented in the input schema. The description adds no additional parameter context beyond what the schema provides — baseline 3 is appropriate when the schema carries the full documenting burden. It doesn't clarify format semantics (text vs json vs hocr) beyond what the schema enumerates, but that's not required at 100% coverage.

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 verb+resource ('Extract text from an image using OCR'), which is specific and unambiguous. The description distinguishes it from siblings like image.screenshot (which captures screenshots) and document.parse (which likely parses documents). The tool name image.ocr — with section 'image.' separating it from qr.* and document.* siblings — plus an explicit OCR purpose leaves no ambiguity.

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 states what the tool does but provides no explicit when-to-use guidance or exclusions versus alternatives. There's no mention of alternatives like document.parse for document-based extraction. The payment context ('Costs $0.05 USDC on Base') is helpful contextual usage guidance but doesn't address when to reach for this tool versus siblings.

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/acrylicfiddle/x402tools-mcp'

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