Skip to main content
Glama

validate_scenario

Validate a scenario manifest JSON structure and content. Identify errors before execution to ensure correctness.

Instructions

Validate a scenario manifest JSON without executing it.

Args: manifest_json (str): JSON string of a :class:ScenarioManifest.

Returns: dict: {"valid": True, "manifest": ..., "primitives": [...]} on success, or {"valid": False, "error": ...} on failure.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
manifest_jsonYes
Behavior4/5

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

No annotations present, so description carries full burden. It discloses behavior (validation only, no execution) and specifies exact return format for success and failure, adding significant behavioral context.

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 minimal and well-structured with Args and Returns sections, containing only necessary information without redundancy.

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 single-parameter validation tool without output schema, the description adequately covers parameter and return details, though could mention scope of validation (e.g., structural vs semantic).

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?

With 0% schema description coverage, the description adds essential meaning by explaining manifest_json is a JSON string of a ScenarioManifest, going beyond the schema's type-only specification.

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 validates a scenario manifest JSON without executing it. This specific verb-resource combination distinguishes it from sibling tools like run_scenario and replay_scenario.

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?

The description implies validation use case by stating 'without executing it,' but does not explicitly mention when to choose this tool over alternatives or provide exclusion criteria.

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/codebymov/CARLA-MCP'

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