Skip to main content
Glama

octave_compile_grammar

Compile OCTAVE schema or contract into GBNF or JSON Schema constraint grammar to regulate AI model outputs.

Instructions

Compile OCTAVE schema or contract to constraint grammar. Supports GBNF (llama.cpp) and JSON Schema (vLLM) output formats. Provide either a builtin schema name or inline OCTAVE content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
schemaNoBuiltin schema name to compile grammar from (e.g., 'SKILL', 'META'). Mutually exclusive with content.
contentNoInline OCTAVE document content with META.CONTRACT or FIELDS block. Mutually exclusive with schema.
formatNoOutput format: gbnf (default) or json_schema.
Behavior3/5

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

No annotations are provided, so the description must fully disclose behavior. It mentions input exclusivity and output formats but does not detail failure modes, side effects, or authentication needs, leaving some behavioral gaps.

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?

The description is concise with three sentences, front-loading the main purpose and essential details, with no unnecessary information.

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 medium-complexity tool with 3 parameters and no output schema, the description adequately covers inputs and output formats. However, missing details about output structure or error conditions slightly reduce completeness.

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%, and the description adds value by clarifying mutual exclusivity of 'schema' and 'content', and specifying the default for 'format'. This goes beyond the schema's own descriptions.

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?

The description clearly states the tool's purpose: compile OCTAVE schema or contract to constraint grammar, specifying supported output formats and input options. This distinguishes it from siblings like octave_eject, octave_validate, octave_write.

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

Usage Guidelines4/5

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

Provides clear context on when to use the tool (compilation to grammar) and mentions output formats, but lacks explicit exclusions or alternative tool references, which would make it more helpful for decision-making.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/elevanaltd/octave-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server