Skip to main content
Glama

Hiringsai — Free AI Tools

tool_figma_to_code

Read-only

Turn a Figma frame into clean HTML and CSS - export the frame as SVG and paste it here. Free, no 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": "<svg>"
    },
    "name": "tool_figma_to_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
svgYesSVG markup exported from Figma
class_prefixNoCSS class prefix, default fx

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful context beyond that: no account or auth is required ("Free, no account") and the frame must be pre-exported to SVG. It says nothing about the 90k character cap, conversion fidelity, or what the returned code looks like, which keeps it at a 3.

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?

One short sentence with the transformation front-loaded, followed by the input instruction and the no-auth note. No filler, and nothing an agent needs is buried.

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?

For a two-parameter, single-shot conversion tool with no output schema, the description covers input prep, output type, and cost/auth. Minor gaps remain around input size limits and conversion limitations, but nothing that would cause a mis-call.

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%, and both parameters (svg, class_prefix) have their own descriptions, so the schema does the heavy lifting. The description adds the only extra hint — that the input is specifically a Figma SVG export — but never mentions the class prefix option, so it is baseline rather than enriched.

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?

States a specific verb and resource: turns a Figma frame into clean HTML and CSS, and immediately names the input format (an SVG export of the frame). An agent can distinguish this from generic siblings like tool_code_converter because the source (Figma SVG) and target (HTML/CSS) are both explicit.

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?

Gives a concrete prerequisite workflow: export the frame as SVG and paste it here, which is the key operational condition for calling it correctly. It does not name an alternative tool or state when not to use it, so it falls short of a 5.

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.