Skip to main content
Glama

local_ask

Ask a local model to generate, rewrite, summarize, or explain text, returning the answer as plain text. Specify the model, prompt, optional system role, temperature, context, and max tokens.

Instructions

Asks a local model a question and returns the answer as text.

For free-text tasks: writing, rewriting, summarizing, explaining. If a
machine-processable result is needed, use 'local_structured' instead.

Args:
    model: Model name as in 'list_models', for example 'llama3.2:3b'.
    prompt: The actual instruction for the model.
    system: Optional role/behavior instruction.
    temperature: 0 means as deterministic as possible (default), higher means more creative.
    max_tokens: Optional cap on the number of generated tokens.
    context: Optional text prepended to the prompt (source, excerpt, data).
    think: Enables the model's reasoning trace. Off by default, because the
        reasoning trace otherwise consumes the answer's token budget (with a
        tight 'max_tokens' the answer then comes back empty). Only for models
        with the 'thinking' capability.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelYes
thinkNo
promptYes
systemNo
contextNo
max_tokensNo
temperatureNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.2

TDQS

A5/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so thoroughly. It discloses the token-budget behavior of the think parameter, warns that a tight max_tokens can cause an empty answer, and notes that thinking is only available for models with that capability. This is valuable operational context beyond the schema.

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 front-loaded with the core purpose, followed by concise usage guidance and a well-structured Args list. Every sentence adds meaningful information; there is no filler or redundancy. The length is justified by the number of parameters and the critical think-related warning.

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?

The description is complete for a 7-parameter tool with no annotations. It explains the return type, all parameters, usage boundaries, and a non-obvious behavioral trap. Combined with the presence of an output schema, nothing essential is missing for an agent to select and invoke the tool correctly.

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 description coverage is 0%, and the description fully compensates by explaining every parameter: model references list_models, prompt is the actual instruction, system is role/behavior, temperature is determinism vs creativity, max_tokens is a cap, context is prepended text, and think explains the reasoning trace with its trade-off. This is exemplary parameter documentation.

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?

States a specific verb and resource: 'Asks a local model a question and returns the answer as text.' It also distinguishes itself from the sibling local_structured by explicitly saying to use that tool for machine-processable results. The purpose is clear, specific, and differentiated.

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

Usage Guidelines5/5

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

Explicitly gives usage context: 'For free-text tasks: writing, rewriting, summarizing, explaining.' It also states the alternative: 'If a machine-processable result is needed, use local_structured instead.' This gives the agent clear when-to-use and when-not-to-use guidance.

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/setheerwagen/local-ai-mcp-servers'

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