Skip to main content
Glama

ai_image_labels

Read-only

Image classification labels — Classify a public image (jpeg, png, webp or gif up to 4 MB) into ImageNet-1k labels with a vision model: top label, score, high/medium/low confidence and up to 10 ranked labels (top= 1-10, default 5), plus format and size. Fast and cheap for tagging, routing and sanity checks; use /v1/ai/image-describe for free-form descriptions or OCR. Price: $0.003 USDC (Base, via x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "ai_image_labels"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYeshttps://upload.wikimedia.org/wikipedia/commons/3/3a/Cat03.jpg

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnlyHint, destructiveHint=false, openWorldHint), and the description adds genuinely new behavior: accepted formats and a 4 MB ceiling, the ranked-label output shape, confidence tiers, and cost/payment rail ($0.003 USDC on Base via x402). Cost and input limits are exactly the kind of context annotations cannot carry.

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?

One dense, front-loaded paragraph that leads with the classification purpose before pricing and constraints. It is somewhat overloaded with stacked parentheticals (formats, size, top-N default, price rail), but no sentence is pure filler.

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?

There is no output schema, yet the description fully characterizes the return payload, and it covers cost, transport, and input limits for a one-parameter tool. The only incompleteness is the phantom 'top' parameter that the schema does not expose, leaving a small ambiguity about whether ranked-label count is configurable.

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 baseline is 3, and the description does add useful constraints on the single url param (public image, jpeg/png/webp/gif, up to 4 MB). However, it also references a 'top' parameter ('top= 1-10, default 5') that does not exist in the input schema, which could mislead an agent into passing an unsupported argument.

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?

States a specific verb and resource ('Classify a public image ... into ImageNet-1k labels with a vision model') and enumerates the exact return shape (top label, score, confidence band, up to 10 ranked labels, format, size). It explicitly differentiates itself from the sibling description/OCR endpoint, so an agent can select it without opening the schema.

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?

Gives concrete use cases ('tagging, routing and sanity checks') and names the alternative with the condition that selects it ('use /v1/ai/image-describe for free-form descriptions or OCR'). This is explicit when-to-use plus when-to-prefer-an-alternative guidance.

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.

Resources