Skip to main content
Glama

classify_image

Classify the content of an image into categories such as objects, scenes, and animals using Apple Vision. Returns sorted labels with confidence scores.

Instructions

Classify the content of a local image into categories using Apple Vision (offline, no API key needed).

USE WHEN: The user wants to know what is depicted in an image — objects, scenes, activities, animals, food, etc. Works with 1000+ categories and returns confidence scores. DO NOT USE for: text extraction (use ocr_image), face/barcode detection (dedicated tools), images that need detailed visual description (use the model's built-in vision).

Returns: JSON array of classification labels sorted by confidence (highest first), each with a label name and confidence score (0–1).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesAbsolute or relative path to the image file
Behavior4/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It reveals offline capability, no API key requirement, 1000+ categories, and confidence scores sorted descending. However, it doesn't mention error handling for invalid paths or unsupported image formats, which would enhance transparency.

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 concise with clear sections (main action, use cases, exclusions, return format). Every sentence adds value. It could be slightly more structured (e.g., bullet points) but is well-organized for an AI agent.

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

Completeness5/5

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

Despite lacking an output schema, the description explains the return format (JSON array with label names and confidence scores) and sorting order. It covers key aspects like local file path, offline operation, and category scope, making it complete for a simple classification tool.

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?

The input schema describes the only parameter 'path' with a clear description. The tool description reinforces that it's a local image path but adds no additional semantics beyond what the schema provides. Since schema coverage is 100% and the parameter is straightforward, a baseline score of 3 is appropriate.

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's purpose: classifying local image content into categories using Apple Vision. It distinguishes itself from sibling tools by explicitly listing what not to use it for (text extraction, face/barcode detection) and referencing dedicated alternatives.

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?

The description provides explicit 'USE WHEN' scenarios (user wants to know what is depicted) and 'DO NOT USE' examples with specific alternative tools (ocr_image, detect_faces). It also notes that the tool works offline without an API key.

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/woladi/macos-vision-mcp'

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