Skip to main content
Glama

query_model

Send a prompt to a specified LLM and receive its response for targeted queries or custom multi-model workflows. Include an optional system prompt to provide context.

Instructions

Query a single LLM model directly. Use for targeted queries or building custom workflows.

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>",
      "model": "<model>"
    },
    "name": "query_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYesModel identifier (e.g., 'openai/gpt-5.6-sol', 'anthropic/claude-sonnet-5', 'openrouter/meta-llama/llama-3.3-70b-instruct')
promptYesThe prompt to send to the model
systemPromptNoOptional system prompt for context

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations provided, the description carries the full behavioral burden, yet it discloses nothing about cost, latency, auth/API-key requirements, rate limits, error behavior, or whether the call is billed per model. For a tool that spends tokens against an external provider, these are meaningful omissions.

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?

Two short sentences with the core action front-loaded and no redundant restatement of the name. The trailing clause 'or building custom workflows' is somewhat fluffy but does not bloat the definition.

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?

The tool is simple and its inputs are fully documented, but there is no output schema and the description says nothing about what comes back (text only? usage/token metadata? model echo?). For a completion-style tool, a single clause on the return shape would close the remaining gap.

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% and all three parameters are documented in-schema, so the baseline applies. The description adds no extra meaning about 'model' identifier formatting, prompt size limits, or how systemPrompt interacts with prompt.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Query a single LLM model directly'), and the word 'single' implicitly distinguishes it from the multi-model sibling council_query. It stops short of naming the sibling outright, so the differentiation is inferable rather than explicit.

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

Usage Guidelines3/5

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

'Use for targeted queries or building custom workflows' implies a usage context but never says when NOT to use it or which alternative (council_query, debate, critique) to pick instead. The agent must infer the routing rule from the single word 'single' in the first sentence.

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