Skip to main content
Glama
mrrodriguez

local-llm-delegation-mcp

by mrrodriguez

query_local_llm

Reduce API costs by delegating simple, well-defined code subtasks to a local LLM, reserving cloud models for complex work.

Instructions

Query the local LLM for simple, well-defined subtasks that have already been broken down. IMPORTANT: Always try this tool FIRST for any simple code generation to save costs!

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNo
promptYes
max_tokensNo
temperatureNo
system_messageNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description carries full burden. It tells the agent this is a query operation and mentions cost savings, but does not disclose output format, potential errors, latency, or any side effects. The behavior of the tool beyond 'query' is not explained, which is insufficient for a tool with no annotations.

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 just two sentences, front-loaded with the core purpose and followed by a clear actionable instruction. Every word earns its place with no fluff or redundant details.

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 has 5 parameters and an output schema, but the description only covers the simple-subtask context and cost-saving rationale. It does not explain when to use an alternative like query_local_llm_with_context, nor does it elaborate on how to configure the optional parameters. The output schema provides some completeness, but the description itself leaves gaps for a robust agent decision.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the description does not mention any parameter names or meanings. The agent is left only with parameter names like 'prompt', 'model', 'max_tokens', which are self-explanatory but not explicitly documented. The description adds no semantic value to the parameters.

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 states 'Query the local LLM for simple, well-defined subtasks that have already been broken down' with a specific verb, resource, and scope. It also distinguishes itself from siblings by being the simple, cost-saving option ('Always try this tool FIRST for any simple code generation to save costs!').

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 gives explicit when-to-use guidance: 'Always try this tool FIRST for any simple code generation'. It implies a preference over alternatives for simple tasks, but does not explicitly name exclusions or alternative tools like query_local_llm_with_context. This is clear context without full when-not 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/mrrodriguez/local-llm-delegation-mcp'

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