Skip to main content
Glama

Decode Mic

decode_mic
Read-onlyIdempotent

Decode an ISO 10383 Market Identifier Code (MIC), the 4-character venue code openfigi returns as exchCode on an exchange listing, and the code most market-data feeds use the same way, to the trading venue's own name, legal operator, country, city, website and registry status. Reports whether the code is an OPERATING MIC (the operator as a whole, e.g. "XNYS") or a SEGMENT MIC (one specific market under an operator, e.g. "ARCX" under "XNYS"); an operating MIC also carries segment_count, call search_mics with operating_mic to list them.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "code": "XNYS"
    },
    "name": "decode_mic"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes4-character ISO 10383 MIC, e.g. "XNYS" (NYSE) or "XLON" (London Stock Exchange).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare this is a safe, idempotent, read-only lookup, so the description's job is to add substance beyond that. It does: it enumerates the returned fields (venue name, legal operator, country, city, website, registry status) and explains the operating/segment distinction with segment_count, which compensates for the absence of an output schema. Minor omission: no mention of behavior for invalid or unknown codes.

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 with the verb and resource, and every clause carries information (definition, provenance, return fields, operating/segment distinction, sibling routing). The first sentence is dense and could be split for readability, but nothing is redundant.

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 single-parameter, read-only decode tool with no output schema, the description supplies the return fields, the operating/segment nuance, and the follow-up path via search_mics. An agent has everything needed to call it correctly and interpret the result.

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 100% and the schema already documents the single `code` parameter with examples, so the baseline would be 3. The description earns extra credit by explaining semantic provenance beyond the schema: this is the code openfigi returns as `exchCode` and the form most market-data feeds use, which helps an agent map data from other sources to this parameter.

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 and resource ('Decode an ISO 10383 Market Identifier Code'), defines the code's role (openfigi `exchCode`, feed convention), and spells out exactly what is returned. It also distinguishes OPERATING vs SEGMENT MIC with concrete examples (XNYS, ARCX), so an agent understands the output shape without opening anything else.

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?

Explicitly names the alternative and the condition that selects it: 'an operating MIC also carries segment_count, call search_mics with operating_mic to list them.' That is a clear when-to-use-this vs when-to-use-the-sibling rule, not an implied one.

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.