Skip to main content
Glama
oscal-compass

Trestle MCP

Official

Initialize Trestle Workspace

trestle_init
Idempotent

Initialize a Trestle workspace by creating the directory structure for managing OSCAL models.

Instructions

Initialize a trestle working directory.

This tool initializes the current directory as a Trestle workspace, creating the necessary directory structure for OSCAL model management.

OSCAL Model Types supported:

  • Catalog

  • Profile

  • Component Definition

  • System Security Plan (SSP)

  • Assessment Plan

  • Assessment Result

  • Plan of Action and Milestones (POAM)

Args: params (TrestleInitInput): Validated input parameters containing: - mode (InitMode): Initialization mode (local/full/govdocs, default: local) - trestle_root (Optional[str]): Path to trestle root directory - verbose (bool): Display verbose output (default: false)

Returns: str: Success message or error details

Examples: - Use when: "Initialize trestle workspace" - Use when: "Set up trestle in full mode" - Don't use when: Workspace is already initialized

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations indicate idempotent behavior, which the description does not contradict. The description adds context about creating directory structure and available modes, going beyond what annotations provide. No mention of side effects, but idempotent implies safety.

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?

Well-structured with a clear purpose, list of supported models, args section, returns, and examples. Front-loaded with main action, each sentence adds value without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Comprehensive for a initialization tool: covers purpose, modes, return type, and usage examples. Output schema reduces need for extensive return descriptions; the provided 'Success message or error details' is adequate.

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?

The input schema already provides descriptions for all parameters (mode, trestle_root, verbose). The description adds no new parameter-level details beyond listing them generically, so it does not significantly improve understanding beyond the schema.

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 verb 'initialize' and the resource 'trestle working directory'. It lists supported OSCAL model types, distinguishing it from sibling tools like trestle_import or trestle_task_* which have different purposes.

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?

Includes 'Use when' and 'Don't use when' examples, providing clear guidance on appropriate contexts. Does not explicitly mention sibling tools as alternatives, but the 'Don't use when workspace is already initialized' is helpful.

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/oscal-compass/compliance-trestle-mcp'

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