Skip to main content
Glama

specprism_compile_dialect

Read-onlyIdempotent

Compile a verified SpecIterationDocument into a read-only implementation handoff prompt tuned to a selected LLM dialect.

Instructions

Compile a verified SpecIterationDocument read-only into an implementation handoff prompt tuned for one of the 9 frontier LLM dialects (anthropic-claude, openai-gpt-reasoning, google-gemini, deepseek-reasoning, qwen-coder, xai-grok, mistral-codestral, meta-llama, local-ollama-default).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "specprism_compile_dialect"
  }
}

Input Schema

NameRequiredDescriptionDefault
specNoVerified SpecIterationDocument JSON to compile.
dialectIdNoTarget dialect profile ID (defaults to spec.targetDialectId or anthropic-claude).
projectIdNoOptional synced cloud project UUID if spec is omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint=false), so the description only needs incremental context. It does add real value by disclosing the return artifact type (an implementation handoff prompt) and that output varies per dialect, which matters because there is no output schema. It does not say what happens if the supplied document is not verified, nor how projectId resolution behaves when spec is omitted.

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?

A single front-loaded sentence with the action and output stated first, followed by the dialect set. The parenthetical enumerating nine IDs is long but earns its place as the only source of those values; no filler or redundant sentences.

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 3-parameter tool with a nested opaque `spec` object and no output schema, the definition covers what the tool produces and the valid dialect set. It leaves the spec/projectId interaction and failure behavior for unverified documents unaddressed, and the nested spec object's structure is undocumented in both schema and description.

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 would be 3, but the description goes further by enumerating all nine valid dialectId values — information the schema lacks entirely (enums: 0). That enumeration lets an agent construct a valid call without guessing. It stops short of explaining the fallback precedence (spec.targetDialectId vs anthropic-claude) beyond what the schema already says.

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 (Compile), a specific input (a verified SpecIterationDocument), and a specific output artifact (an implementation handoff prompt tuned per dialect). No sibling (compute_delta, export_issues, ingest_uat, push_surface, triage_idea, verify_traceability) does compilation, so an agent can route to it without inspecting any schema.

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 phrase 'verified SpecIterationDocument' implies the upstream precondition (verify_traceability must have succeeded first) and 'read-only' signals a safe derivation step. However, there is no explicit when-to-use vs when-not statement, no naming of the sibling that produces the verified spec, and no guidance on choosing between passing `spec` versus `projectId`.

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