Skip to main content
Glama

refine_scenario_from_prompt

Refine an existing AFSIM scenario using natural language prompts to add platforms, adjust duration, or make other modifications.

Instructions

Apply a natural language refinement to an existing scenario.

Supports:

  • Adding platforms: "add 2 more fighters"

  • Changing duration: "extend to 3 hours"

Parameters

scenario_id: UUID of the scenario to refine. refinement_prompt: Natural language description of the changes to make.

Returns

JSON with changes applied and updated platform count.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scenario_idYes
refinement_promptYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

The description explains it applies changes and returns updated JSON, but does not disclose whether modifications are persisted immediately, if the scenario must be loaded first, or potential side effects. Without annotations, more detail would be beneficial.

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, using bullet points for supported changes and a clear header for parameters. Every sentence is informative and well-structured.

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?

The description covers purpose, parameters, and return value. However, it lacks details on error handling, prerequisites (e.g., scenario existence), or validation of the prompt, leaving minor gaps for an agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description explicitly explains both parameters: scenario_id as the UUID and refinement_prompt as the natural language description. This adds essential meaning beyond the schema which only provides titles.

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 refines an existing scenario using natural language, with examples of adding platforms and changing duration. This distinguishes it from siblings like generate_scenario_from_prompt which creates new scenarios.

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 usage for modifying existing scenarios and provides concrete examples, but does not explicitly state when not to use it or alternative tools.

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/Yookio-Z/AFSIM_MCP'

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