Skip to main content
Glama

Render one diagram

render_figure

Render an in-article diagram as a crisp 2x PNG by selecting a template and filling its slots.

Instructions

Render a single in-article diagram to a PNG. Provide the template name and its slots (see list_templates for each template's slot schema). Returns the file path. Renders at 2x for crisp output.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
templateYes
slotsYes
out_pathNoOptional filename or sub-path written INTO the output dir (confined to it).
Behavior3/5

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

Discloses output as file path and 2x rendering for crisp output. However, with no annotations, more information would be beneficial, such as whether it overwrites existing files, idempotency, or required permissions. Still, key behaviors are covered.

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?

Three concise sentences with no redundancy. First sentence states purpose, second explains inputs, third describes output and quality. Every sentence adds value.

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?

Given 3 parameters, no output schema, and no annotations, the description is fairly complete. It covers input requirements, output format, and quality hint. Could mention the output path format or directory confinement, but overall adequate for the tool complexity.

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 has 33% coverage; the description compensates by referencing list_templates for slot schema and explaining that slots are validated there. However, it does not detail the structure of slots or add meaning beyond the schema for out_path. Adequate but not excellent.

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?

Clearly states it renders a single in-article diagram to PNG. Distinguishes from sibling tools like render_set (multiple) and render_cover (cover image) by specifying 'single' and 'in-article'.

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?

Instructs to provide template name and slots, and references list_templates for slot schema, providing clear context. Does not explicitly state when not to use, but the purpose is well-defined and alternatives are implied by sibling names.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/LevNyyon/nyyon-figures'

If you have feedback or need assistance with the MCP directory API, please join our Discord server