Skip to main content
Glama

run_metis

Processes research requests through an 11-stage pipeline: classifies content, blocks sensitive and malicious inputs, selects agents, and returns a routing decision with contextual memory.

Instructions

Master /metis entry point — runs the 11-stage pipeline and returns a routing decision.

Every /metis invocation passes through here. The pipeline:
  1. Bootstraps or resumes the session
  2. Classifies content (PUBLIC/INTERNAL/CONFIDENTIAL/SENSITIVE)
  3. Data Guardian: blocks SENSITIVE requests outright
  4. Cybersecurity: blocks prompt injection and suspicious URLs
  5. Parses intent and selects the appropriate agent(s)
  6. Allocates model and token budget
  7. Assembles minimum surgical context from memory
  8. Persists the turn to session_events
  9. Returns routing decision — agents execute and then call:
       save_session_event(..., 'result', output)
       log_agent_run(..., session_id=session_id)
       write_reflexion(session_id, agent_slug, ...)

Stages 10 (logging) and 11 (reflexion) are called by the executing agent
after completing their work.

Args:
    request: The researcher's request text.
    session_id: Existing session ID if resuming. Leave empty to auto-bootstrap.
    client: Which Claude client is calling ('code'|'chat'|'cowork'|'dashboard').
    max_turns: Maximum pipeline turns before graceful truncation (default 20).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
requestYes
session_idNo
clientNocode
max_turnsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

No annotations provided, so description carries full burden. It discloses critical behaviors: pipeline stages including blocking SENSITIVE requests, prompt injection detection, session persistence, and that logging/reflexion are delegated to the executing agent.

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?

The description is front-loaded with a one-line summary, then structured as bullet points. It is slightly verbose but each sentence adds value. Minor redundancy (e.g., stage numbers) does not detract significantly.

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?

Despite the tool's complexity, the description covers the pipeline stages, parameter details, and expected post-conditions (routing decision, agent actions). Output schema exists, so return values need not be detailed. Complete for an orchestrator tool.

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?

Schema coverage is 0%, but the description provides thorough parameter descriptions under 'Args:', explaining each parameter's role, default values, and usage (e.g., leave session_id empty to auto-bootstrap, client options, max_turns meaning).

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 explicitly states it is the master entry point for the /metis pipeline, detailing the overall goal (runs 11-stage pipeline, returns routing decision). It clearly distinguishes this orchestrator tool from sibling tools, which are finer-grained actions.

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 'Every /metis invocation passes through here,' making usage clear. It does not explicitly list alternatives or when not to use, but this is a mandatory entry point, so no alternatives exist.

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/SVerITG/Metis'

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