Skip to main content
Glama
Rapport MCP Server

Rapport MCP Server

by MicahBly

update_svg

Update the SVG document for your Rapport canvas; it validates security and integrity before saving and returns detailed feedback.

Instructions

Update the SVG document for your Rapport canvas. The SVG will be validated for security (no scripts, event handlers, or malicious content) and integrity before being saved. Returns detailed feedback about the update including element counts and any warnings. Automatically updates your canvas using your authenticated user account.

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": {
      "svg_document": "<svg_document>"
    },
    "name": "update_svg"
  }
}

Input Schema

NameRequiredDescriptionDefault
svg_documentYesThe complete, valid SVG document as a string. Must include <svg> wrapper with xmlns and viewBox attributes. All elements must have unique IDs and appropriate data-type attributes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

TDQS

A3.5/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 that the SVG is validated for security (no scripts, event handlers, or malicious content) and integrity before saving, that it returns feedback including element counts and warnings, and that it writes using the authenticated user account. The main undisclosed trait is that this appears to be a full-document replacement rather than a merge or patch.

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 short sentences, front-loaded with the action, then the validation behavior, then the return feedback. Nothing is padded, and the closing note about the authenticated account is short enough to justify its place.

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?

For a one-parameter write tool with no output schema, most of what an agent needs is present, and the return-value description compensates for the missing output schema. The significant gap is the absence of any statement that the supplied document replaces the entire canvas, which determines whether the agent must call get_svg first to preserve existing elements.

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% for the single parameter, so the schema already documents that svg_document must be the complete valid SVG with an <svg> wrapper, xmlns, viewBox, and unique IDs. The description repeats the validation theme but adds no format, size, or structure detail beyond the schema. Baseline 3 applies.

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 and resource: 'Update the SVG document for your Rapport canvas.' That is clearly distinguishable from read-oriented siblings like get_svg or query_elements. It stops short of naming a sibling or stating the scope of the update, so it is clear but not fully differentiating.

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 never says when to use this tool versus get_svg or get_canvas_template, nor whether the document must first be read to preserve existing content. There is no explicit exclusion or precondition beyond the implicit 'you have an SVG document.'

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