Skip to main content
Glama

extract_design_tokens

Extract bounded PNG/JPEG statistics—palette, background, light/dark, aspect ratio, and approximate text/gridline evidence—for Power BI visual design analysis; no OCR or ML inference.

Instructions

Get bounded PNG/JPEG image statistics only: palette/background/light-dark/aspect ratio and approximate text/gridline evidence. No ML/OCR or inferred fields/data. image is a local path or PNG/JPEG data URI.

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": {
      "image": "<image>"
    },
    "name": "extract_design_tokens"
  }
}

Input Schema

NameRequiredDescriptionDefault
imageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.2

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full disclosure burden and does reasonably well: it defines the exact output surface, rules out inference, and states accepted input forms (local path or PNG/JPEG data URI). It does not specify what 'bounded' means in practice (size/format limits), what happens on unsupported formats, or whether results are deterministic, so it is not fully transparent.

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 with zero filler, front-loaded with the operation and its boundaries, followed by the negative scope and then the parameter note. Every clause carries information an agent needs.

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 single-parameter, no-output-schema tool, the description must describe return content, and it does so by naming the statistics categories and marking them as bounded/approximate. The remaining gap is failure-mode and limit information, which matters for an image-processing tool but is less critical than the return-shape coverage already provided.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and the schema defines only an opaque non-empty string, so the description's note that 'image is a local path or PNG/JPEG data URI' supplies essential semantics that the schema completely lacks. It stops short of covering constraints like path resolution, relative vs absolute paths, or data URI size limits.

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 pairs a specific verb ('Get') with a precisely bounded resource ('bounded PNG/JPEG image statistics') and enumerates the returned dimensions: palette, background, light-dark, aspect ratio, and approximate text/gridline evidence. It goes further by stating what it explicitly is not ('No ML/OCR or inferred fields/data'), which functionally separates it from inference/explanation-oriented siblings such as explain_visual or read_visual.

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?

Usage is only implied: the 'No ML/OCR or inferred fields/data' clause tells an agent that inference tasks belong elsewhere, and 'approximate' warns against precision use. However, no alternative tool is named and there is no explicit 'use this when…' framing, so the agent must infer the routing decision.

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