Skip to main content
Glama
Numbers MCP Server

Numbers MCP Server

by alexlock1

numbers_detect_color_mapping

Detect existing row-color mappings by correlating row colors with a column's values and return a reusable colorMap for value-based row coloring.

Instructions

Auto-detect color mapping by reading existing row colors and correlating with column values. Returns a colorMap that can be used with numbers_color_rows_by_value. Requires macOS.

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": {
      "filePath": "<filePath>",
      "column": "<column>"
    },
    "name": "numbers_detect_color_mapping"
  }
}

Input Schema

NameRequiredDescriptionDefault
columnYesColumn name to correlate colors with (e.g., 'Status')
filePathYesAbsolute path to the .numbers file
sheetNameNoSheet name (defaults to first sheet)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the burden: it discloses that the tool reads existing colors (implying a non-destructive read) and states a hard platform constraint (macOS). It does not cover behavior when no colored rows exist, what the colorMap looks like on failure, or whether anything is modified, which matters for a tool with zero annotation coverage.

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, zero filler. The mechanism and the downstream consumer are front-loaded, and the platform caveat is a short trailing clause rather than a buried footnote.

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 three-parameter detection tool with no output schema, the description covers the mechanism, the return value shape (a colorMap), its intended consumer, and the macOS constraint. Minor gaps remain around failure/no-color cases, but an agent has enough to invoke it correctly.

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 all three parameters (filePath, column, sheetName) are already documented with examples in the schema. The description adds no parameter-level meaning such as accepted column formats or path conventions, so the baseline 3 applies.

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 names a specific operation (auto-detect color mapping) with the concrete mechanism (read existing row colors, correlate with column values) and names the sibling consumer, numbers_color_rows_by_value. An agent can distinguish this from numbers_set_row_color or numbers_color_rows_by_value without opening a schema.

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 makes the usage context clear: call this to produce a colorMap that is then fed into numbers_color_rows_by_value, and it notes the macOS requirement. It stops short of explicit when-not-to-use guidance (e.g., what to do if the sheet has no existing colors), so it is clear but not fully routing.

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