Skip to main content
Glama

Cast Candidates

lab_cast_kandidaten

Propose THREE candidates for ONE role, the way a street-casting director does: the obvious face, the one you would walk past, and the one nobody would think of. Casting is choosing — this gives you something to choose from. It creates nothing: pick one and create it with lab_create_character, passing that candidate's anlegen fields (they include project_id). Costs an LLM run per call, so it is credit-gated, and every call draws NEW candidates (it is not cached on purpose). What the project material fixes (age, gender, …) is the same in all three; the answer's spektrum says whether they really differ (ok, maengel). Fail-open: no material, no AI key or an unusable answer comes back as an EMPTY list with a note, not an error — fewer than three candidates carry note: unvollstaendig.

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": {
      "project_id": "<project_id>",
      "rolle": "<rolle>"
    },
    "name": "lab_cast_kandidaten"
  }
}

Input Schema

NameRequiredDescriptionDefault
notizNoWhat to know about the role that the material does not say, e.g. 'retired judge, buys the same roll every morning'. Without material, a note alone is enough.
rolleYesThe role to cast, usually the character's name, e.g. 'Ottmar'. It becomes the sheet name of every candidate.
project_idYesProject id (from lab_list_projects) — positive integer as string. Its script and cast module are the material.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the annotations: discloses the credit gate, the deliberate non-caching, the fail-open contract (empty list + `note` instead of an error when material, AI key or answer is missing), and the `note: unvollstaendig` case for short lists. It does not describe latency or how partial failure interacts with billing, but the destructive/no-op profile is fully covered by annotations, so what remains is genuinely additive.

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 the 'creates nothing' boundary before the cost and error semantics. It is information-dense rather than padded, though the em-dash-chained sentences and the mid-paragraph fail-open detail make it slightly harder to scan than a shorter version would be.

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?

With no output schema, the description still tells the agent what comes back (`anlegen` fields including project_id, `spektrum` with `ok`/`maengel`, `note`) and how to read a degenerate response. For a 3-parameter, credit-charged generation tool this covers everything needed to call and interpret it correctly.

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%, so `rolle`, `notiz` and `project_id` are already documented in full. The description adds only a little on top (that `rolle` becomes every candidate's sheet name, and that `notiz` alone suffices with no material), and it spends more words on output fields (`anlegen`, `spektrum`) than on inputs. Baseline 3 is right when the schema carries the parameter burden.

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?

States a precise verb and resource (propose three candidates for one role) and immediately scopes it against the sibling that actually persists data: 'It creates nothing: pick one and create it with lab_create_character'. The 'street-casting director' framing adds the selection logic (obvious / overlooked / unexpected) without obscuring what the call returns.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Explicit when-to-use and the follow-up path: call this to get options, then pass a candidate's `anlegen` fields to lab_create_character. It also names the cost condition (credit-gated, an LLM run per call) and warns that repeat calls are intentionally not cached, which directly shapes an agent's decision to re-invoke.

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.

Resources