Skip to main content
Glama
FEAGI MCP Server

FEAGI MCP Server

Official
by feagi

decode_class_map

Read-only

Decode the last burst of a one-layer class map into class IDs to see what a classifier, segmentation OPU, or mask IPU labeled, returning a class histogram and capped pixel rows.

Instructions

Decode the last burst of a one-layer class map into class ids.

One fire-queue read, decoded locally with round(p * class_count) - 1. Use on a classifier twin, the segmentation OPU, or the mask IPU to see what the brain labeled. Returns a class histogram and at most max_pixels pixel rows to limit tokens.

Args: area_id: One-layer class map (base64). class_count: Class count the map encodes. max_pixels: Cap on returned {x, y, class_id} rows (0..5000).

Returns: fired, class_histogram, undecodable (potentials that name no class), pixels, truncated, and timestep.

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": {
      "area_id": "<area_id>",
      "class_count": "<class_count>"
    },
    "name": "decode_class_map"
  }
}

Input Schema

NameRequiredDescriptionDefault
area_idYes
max_pixelsNo
class_countYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.14

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description adds meaningful behavior beyond that: exactly one fire-queue read, local decoding via round(p * class_count) - 1, undecodable potentials being surfaced, and truncation via max_pixels to limit tokens. This tells the agent about cost and lossiness, which the annotations do not.

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?

Front-loaded purpose sentence, then a compact behavioral note, then Args/Returns sections — easy to scan. The Returns block partially duplicates an output schema that already exists, which is minor waste but not harmful.

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?

For a three-parameter decode tool with an output schema and readOnlyHint annotation, the description covers purpose, decoding mechanics, units/format of inputs, truncation limits, and the meaning of undecodable entries. Nothing an agent needs to invoke it correctly is missing.

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 description coverage is 0%, so the description must carry the weight, and it does: area_id is identified as a base64 one-layer class map, class_count as the encoded class count, and max_pixels as a row cap with a 0..5000 range. It omits the default of 200 that the schema declares, which is the only gap.

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+resource pair ('Decode the last burst of a one-layer class map into class ids') and scopes it to concrete device targets (classifier twin, segmentation OPU, mask IPU), which separates it from map-reading siblings like get_agent_joint_map. An agent knows exactly what it gets back: class ids.

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?

Gives clear usage context by naming the three device types the tool applies to and the intent ('see what the brain labeled'). It does not name an alternative or state when not to use it, so it stops short of full routing guidance.

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

Deploy Server

Other Tools