Skip to main content
Glama

Get example

get_example
Read-onlyIdempotent

Get the full code for a specific amCharts 5 example/demo, by its path or its amcharts.com demo address. Paths are listed by list_examples and printed in search results.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
nameNoThe same as `path`, or a demo's name, e.g. 'sankey-diagram', 'stacked column'.
pathNoExample path, e.g. 'examples/flow/sankey-diagram', 'examples/pie-donut/donut-chart', 'examples/maps/drill-down-map', or a demo address such as 'https://www.amcharts.com/demos/sankey-diagram/'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / name
      Added value: +{
      +  "description": "The same as `path`, or a demo's name, e.g. 'sankey-diagram', 'stacked column'.",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "path"
      -]
  2. Changed1 schema field changed
    • changedInput schema / properties / path / description
      Previous value: -"Example path, e.g. 'examples/flow/sankey-diagram', 'examples/pie-donut/donut-chart', 'examples/maps/drill-down-map'"New value: +"Example path, e.g. 'examples/flow/sankey-diagram', 'examples/pie-donut/donut-chart', 'examples/maps/drill-down-map', or a demo address such as 'https://www.amcharts.com/demos/sankey-diagram/'"
  3. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds only that the payload is 'the full code' for one example — a modest but real hint about return volume/format, without mentioning size, language, or error behavior for a bad path.

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: what it returns first, accepted identifier forms second, where to find identifiers third. No filler, nothing repeated from the title.

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 simple read-only fetch with two fully documented parameters and no output schema, the description covers purpose, identifier source, and return kind. Only minor gaps (behavior on an unresolvable path, precedence when both parameters are given) keep it from the top.

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 both parameters already carry examples plus a URL form, so the schema does the heavy lifting. The description only restates that either a path or a demo address is acceptable, adding no new distinction (e.g., which wins if both are supplied, despite neither being required).

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 ('Get the full code for a specific amCharts 5 example/demo') and pins the identifying keys ('by its path or its amcharts.com demo address'). It is clearly distinguishable from list_examples and the search tools, which enumerate rather than fetch.

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 routes the agent: paths come from list_examples and appear in search results, which tells an agent the natural workflow (list/search first, then fetch). It does not state an explicit when-not or what happens if the identifier is unknown/invalid, but the usage context is clear.

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.