Skip to main content
Glama

get_ecg_svg

Generate a reproducible 12-lead ECG SVG on grid paper for requested SCP-ECG statements, with optional sex and age preferences for medical education.

Instructions

Get one real-looking 12-lead ECG that shows all requested SCP-ECG statements, as an SVG on grid paper (25 mm/s, 10 mm/mV). statements: codes from list_ecg_options, e.g. ["AFIB"], ["IMI"] or ["NORM"] for a normal ECG. sex and age are preferences, not filters. The same arguments and seed return the same ECG. Returns the SVG as an embedded resource and aetioecg.v1.Ecg without the image (actual statements, sex, age, seed, attribution) in proto3 JSON as structured content. The ECG may show further statements than requested; they are all listed.

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": {
      "statements": "<statements>"
    },
    "name": "get_ecg_svg"
  }
}

Input Schema

NameRequiredDescriptionDefault
ageNo
sexNoSEX_UNSPECIFIED
seedNo
statementsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does substantial work: it discloses determinism (same arguments and seed yield the same ECG), that results are approximate ("real-looking"), and that extra statements beyond those requested may appear and will be listed. It does not mention any permission, cost, or rate-limit behavior, which keeps it below the top score.

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 core purpose, then parameter guidance, then return shape; every sentence carries information. The inline "statements:" line breaks the prose flow slightly and the returns sentence is dense, but there is no filler.

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 four-parameter generative tool with no annotations and no output schema, the description covers purpose, determinism, output format (embedded SVG resource plus aetioecg.v1.Ecg in proto3 JSON with named fields), and result variance. Only the age/sex value semantics are left thin, which is a minor omission rather than a blocking one.

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 compensate, and it largely does: statements are explained as SCP-ECG codes sourced from list_ecg_options with examples, sex and age are framed as soft preferences, and seed is tied to reproducibility. Gaps remain for the SEX_UNSPECIFIED default and for age units/range, which are not explained anywhere.

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 one real-looking 12-lead ECG") plus the concrete output form (SVG on grid paper at 25 mm/s, 10 mm/mV). It also distinguishes itself from the sibling by pointing at list_ecg_options as the source of statement codes, so an agent can separate retrieval-of-codes from generation-of-ECG without opening either schema.

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 operative context: statements must be codes from list_ecg_options, with concrete examples (["AFIB"], ["IMI"], ["NORM"]), and clarifies that sex and age are preferences rather than filters, which prevents an agent from assuming strict filtering. It does not state exclusions or when not to call it, but with only one sibling that gap is small.

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