Skip to main content
Glama
Universal AI Commands

Universal AI Commands

compile_prompt

Compile a subject and AI commands into native syntax for LLMs, Midjourney, Stable Diffusion, Suno, or video, so prompts match each platform's required format.

Instructions

Compile a subject and Universal AI Commands into native syntax for llm, midjourney, sd, suno, or video.

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": {
      "subject": "<subject>"
    },
    "name": "compile_prompt"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetNo
subjectYes
commandsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/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 discloses that output is platform-native syntax, but says nothing about what happens with unrecognized commands, whether the subject is validated, whether generation is deterministic, or how failures surface.

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 no redundant or filler text. The only weakness is that 'Universal AI Commands' is capitalized jargon left undefined in the description itself.

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?

Three underscripted parameters, no annotations, and no output schema mean the description should also say what the caller gets back (a prompt string? per-platform blocks?). It conveys the transformation but not the result shape or error behavior.

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 0%, so the description must supply parameter meaning; it does map each parameter to a role (subject as content, commands as Universal AI Commands, target as one of five platforms). However, it adds no format detail for the commands array or the subject string, so it only partially compensates for the coverage gap.

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 gives a specific verb ('Compile') plus the inputs (a subject and Universal AI Commands) and the output (native syntax for a named platform set). That is clearly distinct from linting, optimizing, or searching siblings, though it never names them explicitly.

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 when-to-use or when-not guidance and no mention of alternatives such as lint_prompt or optimize_prompt. The agent must infer that this is the generation step rather than a validation or refinement step.

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