Skip to main content
Glama

octave_compile_grammar

Compile OCTAVE schema or contract into constraint grammar for GBNF or JSON Schema output. Choose a builtin schema name or provide inline OCTAVE content.

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?

With no annotations provided, the description bears full burden for behavioral disclosure. It states the tool compiles/documents but does not mention any side effects, permissions, rate limits, or whether the operation is reversible. For a non-destructive compile action, this is minimally adequate but lacks transparency about potential impacts (e.g., file creation, network calls).

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 two sentences, front-loaded with the main purpose. Every sentence adds value: first states overall function and outputs, second clarifies input options and mutual exclusivity. No wasted words.

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?

Given 3 parameters with 100% schema coverage and no output schema, the description is minimally complete. It covers core functionality, but omits return format details (e.g., what does the output look like? a string?). With no annotations, this is adequate but could be more helpful with output expectations.

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 coverage is 100%, and each parameter has a description. The description adds the crucial 'Mutually exclusive' constraint, which goes beyond the schema. However, it does not provide additional context on parameter values (e.g., what builtin schemas exist or example OCTAVE content). Baseline 3 is appropriate as schema does the heavy lifting.

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 compiles OCTAVE schema or contract to constraint grammar, with specific verb 'compile' and resource 'OCTAVE schema or contract'. It distinguishes from siblings by mentioning unique output formats (GBNF, JSON Schema) and input options (builtin name vs inline content), which are not offered by octave_eject, octave_validate, or 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 Guidelines3/5

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

The description implies usage for compiling grammar, but does not explicitly state when to use this tool versus siblings. No direct alternatives or exclusions are provided. It mentions two input modes and two output formats, indicating context but lacking guidance on when to choose one over the other.

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