Skip to main content
Glama

camelot_code_formatter

Idempotent

Format and beautify JavaScript, TypeScript, JSON, HTML, and CSS snippets directly in your browser. Clean up unformatted code for better readability.

Instructions

Code Formatter: Format and beautify JavaScript, TypeScript, JSON, HTML, and CSS snippets.. Local browser processing. Canonical URL: https://www.camelotwebtools.com/tools/code-formatter

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesRaw code snippet to format
languageNoProgramming language or syntax (e.g. javascript, python, json)json

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusYesExecution status of the tool (success or error)
prefillUrlYesDirect deep-link URL to view, edit, and export in Camelot Web Tools
canonicalUrlYesCanonical web URL for this tool on camelotwebtools.com
documentTitleYesTitle of the generated document, report, or calculation output
documentMarkdownYesComplete structured output and body formatted in clean Markdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already cover idempotency and destructive safety, and the description adds the useful behavioral trait 'Local browser processing,' which implies no server-side mutation or data retention. However, it does not disclose what the tool returns, size limits, or any formatting constraints beyond the basic action.

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 short and front-loaded with the core purpose. The 'Local browser processing' phrase earns its place and the canonical URL provides a reference. Minor formatting flaws include the double period after 'snippets.' and a somewhat redundant 'Code Formatter:' prefix.

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 simple two-parameter tool with an output schema, the description covers the essentials but has a notable gap: it advertises TypeScript formatting while the schema's enum does not support it. The language parameter's example ('python') is also misleading. More precise alignment between description and schema would make this fully complete.

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 description coverage is 100%, so the parameters are already documented: `code` is the raw snippet and `language` has an enum with a default value. The description does not add meaningful parameter semantics beyond this, and it slightly conflicts by mentioning TypeScript even though the enum excludes it.

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?

The description clearly states a specific action ('Format and beautify') and identifies the exact resource types ('JavaScript, TypeScript, JSON, HTML, and CSS snippets'). It also adds a useful differentiator ('Local browser processing'). However, it does not explicitly contrast with any sibling tool, and the listed 'TypeScript' is not present in the language enum, slightly muddying the scope.

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?

There is no guidance on when to use this tool versus alternatives. The phrase 'Local browser processing' hints at privacy-oriented use, but it does not state conditions, exclusions, or preferred alternatives. No sibling comparison is provided.

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

Deploy Server

Other Tools