Skip to main content
Glama

ask_model

Send a question to a chosen Ollama model and get an answer directly. Specify the model name and question to leverage local AI for accurate responses.

Instructions

Ask a question to a specific Ollama model

Args:
    model: Name of the model to use (e.g., 'llama2')
    question: The question to ask the model

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelYes
questionYes
Behavior2/5

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

No annotations are provided, so the description carries full behavioral transparency burden. It only states the intent ('Ask a question') without disclosing return format, streaming behavior, error handling, permissions, or side effects, forcing the agent to guess.

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?

The description is two sentences with a clear, front-loaded purpose statement followed by a compact Args list. It contains no filler or redundancy, making it easy to parse quickly.

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?

For a simple two-parameter tool, the description and Args are mostly adequate, but the absence of any mention of the return value (e.g., the model's generated response) is notable because there is no output schema. It also lacks error or availability information, leaving some ambiguity for the agent.

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?

Although the schema has no descriptions, the description includes an Args block that clearly explains both parameters: 'model' is the model name with an example ('llama2'), and 'question' is the prompt to ask. This fully compensates for the schema gap and adds meaningful semantic detail.

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 uses a specific action ('Ask a question') and a resource ('specific Ollama model'), making the tool's purpose immediately clear. It also naturally distinguishes itself from sibling tools like list_models and show_model, which are about listing and viewing models rather than interacting with them.

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

Usage Guidelines2/5

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

The description gives no explicit guidance on when to use this tool versus list_models or show_model. There are no conditions, prerequisites, or exclusions, leaving the agent to infer usage solely from the tool name.

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/fastmcp-me/mcp-ollama'

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