Skip to main content
Glama

elenchus_set_dynamic_roles

Configures a session with dynamically generated verifier and critic roles, finalizing the role setup for autonomous use in adversarial code verification.

Instructions

Set dynamically generated roles for a session. Call this after completing all 3 steps of elenchus_generate_roles. The roles will be used automatically by getRolePrompt when sessionId is provided.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdYesSession ID
domainResultYesJSON string of domain detection result
verifierRoleYesJSON string of generated verifier role
criticRoleYesJSON string of generated critic role
Behavior3/5

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

No annotations provided, so description must bear behavioral disclosure. It states the roles will be used automatically, but does not cover side effects, error behavior, or overwrite semantics. Adequate but not rich.

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?

Three sentences: purpose, precondition, downstream usage. No redundant information, highly efficient.

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?

No output schema, but description explains role in workflow. All parameters documented in schema. Lacks error handling or out-of-order invocation details, but sufficient for a step in a multi-step process.

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 descriptions cover all 4 parameters (100% coverage), but are minimal. The tool description adds no extra parameter-specific meaning beyond the schema, so baseline 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?

Clearly states it sets dynamically generated roles for a session, uses specific verb 'Set' with clear resource. Distinguishes from sibling elenchus_generate_roles by positioning as post-generation step.

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?

Explicitly says to call after completing all 3 steps of elenchus_generate_roles, and explains downstream use by getRolePrompt. Does not explicitly mention when not to use, but precondition is clear.

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/jhlee0409/elenchus-mcp'

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