Skip to main content
Glama
amis-mcp-server

amis-mcp-server

by xiaoguan521

create_chart

Generates ready-to-use AMIS chart schemas for pie, bar, line, and funnel charts from a data API, with optional title, height, and drill-down settings.

Instructions

快速创建图表组件。返回可直接使用的 AMIS 图表 schema。

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": {
      "chart_type": "<chart_type>",
      "api": "<api>"
    },
    "name": "create_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
apiYes数据接口地址,如 /api/stats
titleNo图表标题(可选)
heightNo图表高度,默认 400(可选)
chart_typeYes图表类型: pie(饼图), bar(柱状图), line(折线图), funnel(漏斗图)
drilldown_apiNo钻取详情接口地址(可选)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose the useful behavioral fact that the output is a ready-to-use AMIS chart schema rather than a persisted resource reference, but it is silent on whether anything is written server-side, what permissions or app context are needed, and how api/drilldown_api are fetched or validated.

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?

Two short sentences with the purpose front-loaded and no wasted clauses. The modifier 快速 ("quickly") is decorative rather than informative, and the brevity comes at the cost of any usage context, but structurally it is clean.

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 five-parameter creation tool with no annotations and no output schema, the return-value hint (AMIS chart schema) is genuinely helpful and covers part of the gap left by the absent output schema. However, persistence behavior, auth/context requirements, and guidance on choosing this over create_page or generate_page_schema are all missing.

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% and the enum values for chart_type are documented inline, so the schema already explains all five parameters. The description adds no additional param meaning, such as the expected response shape of api or what drilldown_api changes in the generated chart, so the baseline 3 applies.

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?

The description gives a specific verb plus resource: creating a chart component, and states it returns a usable AMIS chart schema. It is clear what the tool produces, but it never distinguishes itself from siblings like create_page or generate_page_schema, which plausibly also produce AMIS schema output.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance at all: no statement of prerequisites (does it need an existing page or app context?), no condition under which a different tool should be chosen, and no mention of any alternative such as list_components for discovery. The agent must infer the call context entirely from the schema.

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