Skip to main content
Glama

OpenFactory

assign_app_scenario

Assign a scenario to a project (and optionally an existing variant), or remove it.

This only sets metadata — it never touches the scenario's steps or hardened element cache, and never triggers a build. Provide project_id (and an optional existing build_id) to file the scenario under that project; omit project_id to remove it from its project. Only scenarios you own.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "scenario_id": "<scenario_id>"
    },
    "name": "assign_app_scenario"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_keyNoMCP API key
build_idNoOptional EXISTING variant/build id to associate (metadata only — reuses a build already present, never triggers a new build). Cleared if omitted.
project_idNoProject (proj-… id you own) to file the scenario under, so it shows up under that project in the cto-gui graphs / right test panel. Pass null/omit to REMOVE the scenario from its current project.
scenario_idYesScenario id to (re)file (from list_app_scenarios)
session_tokenNoSession token

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does so well: it discloses that the call only sets metadata, never modifies steps or the hardened element cache, never triggers a build, that build_id reuses an existing build rather than creating one, and that only owned scenarios are eligible. It omits failure behavior (what happens with an unowned or missing scenario/project) and any concurrency or overwrite semantics for an already-filed scenario.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and then the add-vs-remove rule; the second paragraph is mostly high-value behavioral disclosure. There is mild redundancy in restating that project_id and build_id should be provided to file the scenario, which the schema already covers.

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?

An output schema exists so return values need no explanation, and the description supplies the non-obvious behavioral facts an agent needs before calling (metadata-only, no build, ownership). Completeness would be higher if it covered error cases and whether re-assigning an already-filed scenario overwrites the previous project.

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 description coverage is 100%, so the schema already explains every parameter, including the null/omit removal semantics for project_id and the metadata-only nature of build_id. The description adds the ownership constraint ('Only scenarios you own') for scenario_id/project_id, but otherwise largely restates what the schema provides, so the baseline of 3 is appropriate.

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 first sentence names a specific verb and resource ('Assign a scenario to a project ... or remove it') and disambiguates the dangerous reading by framing removal as unfiling from a project rather than deletion, which is the main confusion risk against siblings like delete_app_scenario. An agent can tell which operation it is getting without opening the schema.

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 states the operating conditions explicitly: pass project_id (optionally with an existing build_id) to file the scenario, omit project_id to remove it. That is a clear when/when-not rule. It does not name any alternative tool for the delete case, so it stops short of full routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.