Skip to main content
Glama
OpenICGC

mapicgc-mcp

Official
by OpenICGC

Exemple de codi de mapicgc-gl-js

get_example

Returns complete, runnable code examples for specific mapicgc-gl-js topics, including markers, 3D terrain, style changes, geocoding, and ICGC layers.

Instructions

Retorna un exemple de codi complet i funcional per a un tema concret de mapicgc-gl-js (mapa bàsic, canviar d'estil, marcadors, terreny 3D, geocodificador, capes ICGC, comparador de mapes, exportar, etc.). Els exemples estan basats en l'API real de la llibreria.

Input Schema

NameRequiredDescriptionDefault
topicYesTema de l'exemple, p. ex. 'terreny 3D', 'marcadors', 'canviar estil', 'geocodificador'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations, so the description carries the burden. It does add that examples are 'complet i funcional' and 'based on the real library API', which signals output quality, but says nothing about format/length of the returned snippet, whether it is read-only, or any limits.

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 tight sentences, front-loaded with the return value, followed by the topic enumeration. Nothing redundant or padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter, no-output-schema tool the description covers what it returns conceptually, but leaves the shape of the response (snippet only? multiple files? framework version?) unspecified, which matters for a code-generation tool.

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 coverage is 100% and the single 'topic' parameter is already documented with examples in the schema. The description's topic list partially duplicates that, adding a few extra valid values but no new syntax or constraints.

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?

States a specific verb and resource: returns a complete, working code example for a given mapicgc-gl-js topic, and enumerates the topic space. It does not distinguish itself from siblings like get_started, get_api, or search_docs, so an agent must infer the split.

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 by 'per a un tema concret' — the agent can guess this is for copy-paste-ready samples rather than reference docs, but no explicit when-to-use or when-to-prefer-get_api/get_started is given despite obvious sibling overlap.

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