Skip to main content
Glama

render_energy_badge

Render compact SVG energy labels—dot HUD strip, micro pill, stamp, or 5-bar card—from a grading result to visualize human-AI co-authorship scores.

Instructions

Render an SVG energy label (dot HUD strip, micro 20px pill, stamp PPT corner plate, or card 5-bar plate).

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": {
      "result": "<result>"
    },
    "name": "render_energy_badge"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNobi
styleNodot
themeNodark
resultYesResult dict returned by grade_artifact or grade_coauthorship.
out_pathNoOptional file path to write the SVG.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.3

TDQS

C2.9/5.0
Behavior2/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, yet it only discloses that the output is an SVG and what each style looks like. It does not mention file-writing side effects implied by out_path, whether the SVG string is also returned, or any permissions/overwrite behavior, which is a notable gap for a tool that can persist files.

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?

A single front-loaded sentence with zero filler; the parenthetical enumeration is dense but each clause adds distinct information. Slightly compressed to the point that surrounding context (what the label is for) is lost.

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

Completeness2/5

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

With five parameters including a required nested `result` dict, no output schema, and no annotations, the description should explain the expected result shape and the returned artifact. It covers only the style variants, leaving the agent to infer the rest from the schema alone.

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 only 40%, and the description only adds meaning for `style`, where it goes beyond the bare enum values by describing each variant's visual form. The required nested `result` object, plus `lang`, `theme`, and `out_path`, receive no elaboration from the description.

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?

Names a specific verb ("Render") and resource ("SVG energy label") and enumerates the four output variants with visual descriptions (HUD strip, 20px pill, PPT corner plate, 5-bar plate), so the artifact produced is unambiguous. It does not, however, distinguish itself from the siblings grade_artifact/grade_coauthorship/verify_energy_receipt, even though the schema hints at an upstream relationship.

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?

The description says nothing about when to use this tool versus the grading or verification siblings, nor when to choose one style over another. No prerequisites (e.g., needing a result dict from grade_artifact) or exclusions are stated in the description text itself.

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