Skip to main content
Glama

lingual_transform_spec

Transform raw native-language thoughts or instructions into structured engineering specs, conventional commits, or maintainer peer feedback while leaving code blocks and stack traces untouched.

Instructions

Transform messy native-language thoughts or instructions into crisp, structured engineering specifications, conventional commits, or OSS maintainer peer comms while keeping code blocks & stack traces 100% untouched. Accepts any preset id or a mode id declared in ~/.pi/agent/lingual.json.

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": "lingual_transform_spec"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe raw thought, feature requirement, issue draft, or commit message in any language.
contextNoExtra context for context-aware modes, such as a staged git diff for 'commit' or the previous agent turn.
loadoutNoPreset loadout: 'spec' (structured engineering specification), 'commit' (conventional commit <=72 chars), 'oss' (maintainer peer issue/PR feedback), 'yap' (high-density tech post for X/HN), 'direct' (clean technical English, code blocks and stack traces intact), or any custom mode id from lingual.json. Default: 'spec'.spec
reasoningNoThinking effort for this call. Overrides the mode's pinned level (spec pins 'low', the rest pin 'off').
sourceLangNoSource language code (e.g. 'zh', 'ja', 'en', 'es'). Auto-detected if omitted.
targetLangNoTarget language code (e.g. 'en', 'ja', 'zh'). Default: 'en'.en
includeVocabNoSet false to drop the vocabulary slot from the prompt and the response. Default: true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose a meaningful invariant (code blocks and stack traces are preserved verbatim) and where mode definitions live, but it never states that this is an LLM-backed transformation with associated latency/cost, nor what the response looks like or whether anything is written to disk.

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?

Two dense sentences, front-loaded with the transformation and the preservation guarantee, with no filler. The second sentence is a compact pointer to config-derived modes. Slightly more benefit would come from naming the default mode in the description rather than relying on the schema.

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?

Seven parameters, no annotations, and no output schema mean the description is the only place to explain the return shape, and it stays silent about it (the vocabulary slot mentioned in the schema hints at a structured response but is never described). For a multi-mode transformation tool the definition is adequate but leaves the agent guessing about the response.

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% and each parameter is already documented in detail, including the loadout enum values, so the schema does the heavy lifting. The description adds only the concrete config path for custom mode ids, which the schema references without naming; useful but marginal against a fully documented schema.

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 a concrete transformation target: messy native-language thoughts into specs, conventional commits, or OSS peer comms, plus the invariant that code blocks and stack traces are untouched. That is far more than a restatement of the name. It does not, however, say anything that distinguishes it from lingual_bilingual_companion or lingual_prompt_template, which are its nearest siblings.

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?

The description implies usage through the preset/mode mechanism and points at ~/.pi/agent/lingual.json as the source of custom modes, which tells an agent how to select a mode. It gives no when-to-use versus when-not-to-use guidance and never mentions the sibling tools as alternatives, so routing must be inferred from the enum in the schema.

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