Skip to main content
Glama

Sage Agent x402 Tools

ai_vision_analyze

Read-only

Inspects an image via multimodal vision AI to perform OCR, chart/table extraction, UI inspection, or visual Q&A from either a public image_url or base64 image_base64. Use for understanding existing images; use gpu_flux_image to generate new images from text or gpu_audio_transcribe for audio files. Read-only, stateless; costs $0.040 Base USDC via x402 (unpaid calls return a v2 quote challenge without charging; invalid inputs return 400 uncharged).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ai_vision_analyze"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptNoSpecific OCR, extraction, or visual analysis instruction (defaults to a comprehensive structured description).
image_urlNoPublic HTTP/HTTPS URL of the image to analyze. Provide either 'image_url' or 'image_base64'.
mime_typeNoMIME type of 'image_base64' when not supplied as a data URI (e.g. 'image/png', 'image/jpeg', 'image/webp').image/png
max_tokensNoMaximum response tokens (32-1200, default 700).
image_base64NoRaw base64-encoded image bytes or data URI. Provide either 'image_base64' or 'image_url'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, destructiveHint=false, openWorldHint, and idempotentHint=false, and the description goes well beyond them: stateless execution, a concrete price ($0.040 Base USDC via x402), and the exact failure semantics (unpaid calls return a quote challenge uncharged, invalid inputs return 400 uncharged). That is a rare level of operational detail for a paid tool.

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?

Three compact sentences ordered by importance: what it does, which sibling to pick instead, then cost and error behavior. Each sentence carries distinct, non-redundant information.

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?

For a no-output-schema tool, the definition covers purpose, routing, input sources, cost, and failure modes thoroughly. The only gap is that nothing hints at the shape or size of the returned analysis text beyond the max_tokens cap.

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 coverage is 100%, so the descriptions of prompt, image_url, mime_type, max_tokens, and image_base64 already carry the parameter semantics. The description only adds the mutual exclusivity of the two image sources, which the schema itself also states, so it does not meaningfully extend parameter meaning.

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?

"Inspects an image via multimodal vision AI to perform OCR, chart/table extraction, UI inspection, or visual Q&A" gives a specific verb, resource, and enumerated capability set. It also names the input sources, so an agent can immediately distinguish this from image generation or audio siblings.

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

Usage Guidelines5/5

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

Explicitly states when to use it ("understanding existing images") and names the alternatives with their selection conditions: gpu_flux_image for generating new images, gpu_audio_transcribe for audio. No inference is left to the agent.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.