Skip to main content
Glama
rasvan-ghiliciu

local-executor-mcp

delegate_code

Reduce token usage by offloading mechanical codegen tasks—boilerplate, scaffolding, test stubs—to a local LLM. Give a precise spec, then verify and integrate the output.

Instructions

Delegate a self-contained, mechanical code-generation subtask to a local LLM to save frontier-model tokens. GOOD for: boilerplate, scaffolding, repetitive CRUD, test stubs, format/data transformations, bulk edits with a clear rule, Odoo models/views/manifests. NOT for: subtle logic, debugging, cross-file reasoning, or security-sensitive code (do those yourself). Provide a precise spec plus any context the worker needs; it returns ONLY the generated artifact. You, the planner, verify and integrate it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskYesPrecise specification of what to generate. Be explicit — the worker will not infer your intent.
tierNo'quality' (default) uses the larger model; 'fast' uses a small model for trivial / high-volume tasks.
contextNoRelevant existing code, conventions, type/interface definitions, or specs the worker must follow.
languageNoTarget language or format, e.g. 'typescript', 'python', 'odoo-xml-view'.
Behavior4/5

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

No annotations are provided, so the description carries the burden of behavioral disclosure. It states that the tool 'returns ONLY the generated artifact' and that the planner must 'verify and integrate it,' which are key behavioral traits. However, it does not disclose potential failure modes, error handling, or any side effects, leaving some gaps.

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?

The description is well-structured with a clear purpose statement, a 'GOOD for' list, a 'NOT for' list, and an instruction. It is somewhat longer than the ideal two-sentence example, but every section earns its place by adding practical guidance on usage. It is not verbose or redundant.

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

Completeness4/5

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

The tool has four parameters, no output schema, and no annotations. The description covers the essential context: what it does, when to use it, what inputs to provide, and what output to expect (only the artifact). Minor gaps like error handling are not critical for a delegation tool, making this fairly complete.

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?

The input schema already provides descriptions for all four parameters (100% coverage), so the baseline is 3. The description adds general guidance ('Provide a precise spec plus any context the worker needs'), but this is only a slight reinforcement of the task and context parameters without introducing new semantics beyond the schema.

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 clearly states the tool's purpose: 'Delegate a self-contained, mechanical code-generation subtask to a local LLM.' It also provides specific examples of good use cases (boilerplate, scaffolding, CRUD) and exclusions, distinguishing it from the sibling tool 'list_local_models' which is about listing models, not delegating code generation.

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?

The description explicitly lists 'GOOD for' and 'NOT for' scenarios, giving clear when-to-use and when-not-to-use guidance. It even instructs the agent to 'do those yourself' for unsuited tasks, which is a direct exclusion. This is exemplary usage 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/rasvan-ghiliciu/test_mcp'

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