Skip to main content
Glama

convert_lean_unicode

Convert Lean 4 backslash notation to Unicode symbols or reverse Unicode symbols to ASCII escapes, making Lean 4 text easier to edit in either format.

Instructions

Convert Lean 4 backslash shortcuts (\forall, \to, \and, \N, <, >, ...) to Unicode symbols or back to ASCII escapes.

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": {
      "text": "<text>"
    },
    "name": "convert_lean_unicode"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesLean 4 text to convert.
directionNoConversion direction (default to_unicode).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden; it does disclose that the operation is bidirectional and purely textual, which is useful. It omits behavior on unrecognized escape sequences, whether non-escape text is preserved verbatim, and whether the operation is idempotent or errors out.

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?

A single front-loaded sentence with the action and both directions stated up front, and the example list earns its place by pinning down what 'backslash shortcuts' means.

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 pure text transformation with no annotations and no output schema, the definition covers what the tool does and which direction it runs. The only soft gap is that the return value (a converted string) is not stated, though it is strongly implied.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%: 'text' and the 'direction' enum with its 'to_unicode' default are fully documented in the schema. The description adds no parameter detail beyond it, but nothing is left ambiguous either.

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 ('Convert') plus the exact resource ('Lean 4 backslash shortcuts') and both target forms ('Unicode symbols or back to ASCII escapes'), backed by concrete examples (\forall, \to, \N). No sibling overlaps this function, so an agent can identify it immediately.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer it applies when Lean source notation must be rendered or escaped, but there is no statement of when to prefer this over alternatives (e.g. emitting Unicode directly) and no exclusions or prerequisites.

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