Skip to main content
Glama

render_badge_svg

Render a compact, self-contained SVG shield from the grade in a doctor summary, turning streaming API health results into a shareable badge.

Instructions

Render a compact, self-contained SVG shield from the grade in a doctor summary.

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": {
      "summary": "<summary>"
    },
    "name": "render_badge_svg"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoLabel shown next to the grade.inferdiff
summaryYesDoctor summary JSON containing a grade.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It discloses the output shape qualitatively ('compact, self-contained SVG shield'), which is useful, but says nothing about whether the SVG is returned as a string or written to disk, nor what happens if the summary contains no grade or an unrecognized grade. With zero annotation coverage, these gaps are meaningful.

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?

One dense sentence with the output form and input source front-loaded; nothing is redundant. It is arguably too terse for a tool that renders and returns content, but there is no filler to cut.

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?

With two parameters, a nested summary object, and no output schema, the description should clarify the return value and the contract for the nested grade. It conveys the general output concept but leaves return type and failure behavior for an invalid or missing grade unspecified.

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%, so both parameters are already documented in the schema. The description reinforces that the summary parameter is consumed specifically for its grade field, but adds no detail about label usage, label length limits, or what constitutes a valid grade value. Baseline 3 is appropriate.

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 ('Render') and resource ('compact, self-contained SVG shield'), plus the input source ('the grade in a doctor summary'), which lets an agent tell it apart from siblings like doctor_endpoint. It stops short of naming a sibling for contrast, but the purpose is unambiguous.

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?

The phrase 'from the grade in a doctor summary' implies this is a follow-on step after generating a doctor summary, but the description never states when to use it, when not to, or what alternative exists if the caller wants a different badge format. Usage is inferable rather than stated.

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