Skip to main content
Glama

lingual_prompt_template

Extract the compiled system prompt and few-shot rules for any Lingual mode so a host agent can run it directly without external API keys. Supports presets and custom lingual.json modes.

Instructions

Zero-key mode: extract the exact compiled system prompt and few-shot rules for any Lingual mode so the host agent can execute it directly without external API credentials. Custom modes from lingual.json are accepted.

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": {
      "loadout": "<loadout>"
    },
    "name": "lingual_prompt_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
loadoutYesTarget mode or loadout id: any preset, 'companion', or a custom mode id from lingual.json.spec
sourceLangNoSource language code (e.g. 'zh', 'ja', 'en'). Default: 'zh'.zh
targetLangNoTarget language code (e.g. 'en', 'ja'). Default: 'en'.en
includeVocabNoSet false to drop the vocabulary slot from the compiled prompt. Default: true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.7/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full load, and it does disclose the two most important traits: the tool requires no external API credentials, and the payload is the compiled prompt plus few-shot rules rather than a translation result. It also notes that custom modes from lingual.json are honored. It does not address idempotency, side effects, or response shape/size, which keeps it below a 5.

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 sentences, front-loaded with the "Zero-key mode" framing, with no filler. The clause "so the host agent can execute it directly" slightly overlaps with the zero-key framing but does reinforce the intent, so it mostly earns 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 four-parameter tool with no output schema, the description covers what is returned conceptually and that no credentials are needed. It still omits how sourceLang, targetLang, and includeVocab shape the compiled prompt, and gives no sense of the returned structure (single string vs. object), which leaves an agent guessing about the response.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the sentence "Custom modes from lingual.json are accepted" adds meaning the schema does not: the closed-looking enum for `loadout` is actually open to arbitrary custom mode ids. That is a genuinely useful clarification that prevents the agent from rejecting a valid value.

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?

Uses a specific verb ("extract") plus a specific resource ("the exact compiled system prompt and few-shot rules") scoped to "any Lingual mode". An agent immediately knows this returns prompt text rather than performing a translation. It stops short of naming how it differs from lingual_bilingual_companion or lingual_transform_spec, so sibling differentiation is left implicit.

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?

"Zero-key mode" and "without external API credentials" give a clear situational trigger for choosing this tool. However, there is no stated when-not condition and no explicit comparison to the sibling tools that presumably do the same work with credentials, so the agent must infer the routing decision.

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