Skip to main content
Glama

unmake file tools

Count objects in a photo (cells, colonies, screws, pills)

count_objects
Read-onlyIdempotent

Count objects in a photo (cells, colonies, screws, pills). Counts the objects in a photo, splits touching ones by typical size and returns every object's size (in mm with an A4 sheet or card in the photo, or a given pixel size) and a CSV. Same engine as the object counter page. Use when: An agent has a photo or microscope image and needs how many objects there are and their sizes. Not for: Heavily overlapping objects (counted by area, marked clump), identifying what the objects are. File types: jpg, jpeg, png, webp. Max 20 MB.

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": "count_objects"
  }
}

Input Schema

NameRequiredDescriptionDefault
optionsNoTool options, if any (see the tool description).
file_urlNoPublic https URL of the file (preferred).
filenameNoFile name with its extension, e.g. part.step.
file_base64NoThe file as base64, for small files without a URL (give filename too).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the annotations readOnlyHint, idempotentHint, and non-destructive, the description discloses the counting heuristic (touching objects are split by typical size), the fallback behavior for overlaps (counted by area, marked as a clump), and the calibration requirement (an A4 sheet or card, or a pixel size). It also states the file-type and 20 MB limits. The one gap is that it does not explain accuracy or the format of the per-object report beyond 'size' and 'CSV'.

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 front-loaded: it states what the tool does and what it returns, then moves to use cases, exclusions, and file constraints. There is minor redundancy in restating the title in the opening sentence, but no filler sentences.

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?

With no output schema, the description carries the burden of describing the return values, and it does so (counts, per-object sizes in mm or pixels, and a CSV). File limits and calibration requirements are also covered. The remaining gap is the undocumented nested 'options' payload.

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 the file_url, filename, and file_base64 semantics are already documented and the baseline is 3. The description adds a hint that a pixel size can be supplied, which likely lives in the nested 'options' object, but that object's contents are never enumerated in either the schema ('Tool options, if any') or the description, leaving a nested-parameter gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a concrete verb and resource ('Count objects in a photo') plus example domains (cells, colonies, screws, pills), and it explains what the tool returns: per-object sizes and a CSV. However, it never names a sibling such as photo_measure, so the boundary between counting and measuring is left to the agent to infer.

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?

It states an explicit 'Use when' condition (a photo or microscope image where the agent needs counts and sizes) and an explicit 'Not for' condition (heavily overlapping objects, identifying object types). What is missing is any named alternative tool, so the guidance is clear on capability but not on routing.

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