Skip to main content
Glama

Get timeline renderer source

get_renderer_source
Read-onlyIdempotent

Returns the source code of the open-source Rhylthyme timeline renderer (Apache-2.0, ~9KB, zero dependencies). Use this when you're building an HTML artifact and the artifact sandbox blocks external scripts (e.g., Claude.ai's CSP only allows cdnjs.cloudflare.com). The returned text is plain JavaScript with a UMD wrapper — paste it verbatim inside a <script>…</script> block in your artifact, then call Rhylthyme.renderTimeline(container, program) where program is the Rhylthyme program JSON. After this call, the global Rhylthyme object exposes: renderTimeline(container, program), renderTimelineSvg(program), computeStepTimings(program), parseSeconds(value) and stepDurationSeconds(step).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the safety profile is covered. The description adds valuable behavioral context: the returned text is plain JavaScript with a UMD wrapper, the global Rhylthyme object exposes specific functions, and the source is open-source with zero dependencies. It doesn't contradict annotations. Minor gap: no mention of potential size/format edge cases, but the description is quite transparent.

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?

The description is a single dense paragraph that front-loads the purpose and then provides usage details. It's longer than strictly necessary but every sentence adds value: license/size/dependencies, when to use, how to use, and what the returned object exposes. Slightly verbose but well-structured.

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

Completeness5/5

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

For a zero-parameter, read-only tool with no output schema, the description is remarkably complete. It tells the agent what the tool returns, why it exists, when to use it, how to invoke the returned code, and what API the returned code exposes. Nothing an agent needs to call it correctly is missing.

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?

The tool has zero parameters, so the schema is trivially complete (100% coverage). The description doesn't need to explain parameters. It instead explains the return value and usage, which is the meaningful semantic content. Baseline 4 for zero params is appropriate.

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?

The description states a specific verb ('Returns'), a specific resource ('source code of the open-source Rhylthyme timeline renderer'), and adds distinguishing details (Apache-2.0, ~9KB, zero dependencies). It clearly differentiates from siblings like preview_timeline or visualize_schedule by focusing on obtaining the renderer source for embedding.

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

Usage Guidelines5/5

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

The description explicitly says when to use this tool: 'when you're building an HTML artifact and the artifact sandbox blocks external scripts (e.g., Claude.ai's CSP only allows cdnjs.cloudflare.com)'. It also provides concrete usage steps: paste verbatim inside a <script> block and call Rhylthyme.renderTimeline(container, program). This is strong, actionable guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.