Skip to main content
Glama

ask_model

Query any OpenRouter model with a prompt and optional context to get a second opinion, compare approaches, or review code and architecture.

Instructions

Ask a question to any model available on OpenRouter. Use this to get a second opinion, compare approaches, or leverage different model strengths.

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": {
      "prompt": "<prompt>"
    },
    "name": "ask_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoModel to query. Use shortcuts like: gpt-4o, gpt-4-turbo, claude-3-opus, claude-3-sonnet, gemini-pro. Or use any full OpenRouter model ID. Default: gpt-4o
promptYesThe question or prompt to send to the model
contextNoOptional context about the current task, code, or conversation to include

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior2/5

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

With no annotations, the description carries the entire behavioral burden and discloses little beyond scope. It says nothing about needing a configured API key (despite set_api_key being a sibling), per-call cost or rate limits, latency, or whether errors occur for unavailable models -- all material for a synchronous external call.

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?

Two sentences, front-loaded with the core action and followed by the use cases. No filler and no redundancy with the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and no annotations, the description should say more about what comes back (raw text only, or model metadata too) and what happens on failure. For a simple three-parameter query tool the coverage is adequate but leaves real gaps.

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%, and the schema already documents all three parameters including model shortcuts and default. The description adds no extra meaning about model resolution fallback behavior or how 'context' is merged into the prompt, so baseline 3 applies.

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?

"Ask a question to any model available on OpenRouter" gives a specific verb (ask) and resource (any OpenRouter model), and the second sentence lists the intents (second opinion, comparison, model strengths). It is clearly distinguishable from the config-oriented siblings such as set_default_model or set_api_key.

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 clearly names when to reach for this tool: second opinions, comparing approaches, or exploiting differing model strengths. It does not state any exclusions or prerequisites, but no sibling appears to offer comparable query behavior, so the missing alternatives are not a serious gap.

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