Skip to main content
Glama
oemoem12

lmstudio-agent-mcp

by oemoem12

agent_run_skill

Destructive

Invoke a skill by name with optional input and arguments, returning structured results including output and exit status.

Instructions

Invoke a discovered skill by name and return its result.

Python skills are imported in-process and their run(input, **kwargs) function is called. Shell skills are executed via subprocess. Markdown skills simply return the file contents.

Args: name: Skill name. input: Primary input passed to the skill as the first argument. args: Additional keyword arguments forwarded to the skill. skills_dir: Override the skills directory. timeout: Maximum execution time in seconds.

Returns: str: JSON with keys 'success', 'name', 'type', 'stdout', 'stderr', 'exit_code', and 'timed_out'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argsNoAdditional keyword arguments forwarded to the skill.
nameYesSkill name (subdirectory or file basename without extension).
inputNoPrimary input passed to the skill as the first argument.
timeoutNoMaximum execution time in seconds.
skills_dirNoOverride the skills directory.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=true), the description adds valuable details about execution mechanisms: Python skills run in-process, shell skills via subprocess, and markdown skills return file contents. It also discloses the return format and timeout behavior. It doesn't explicitly warn about side effects, but the destructive hint covers that, so the additional execution context earns a 4.

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 well-structured and concise: a clear opening, a brief explanation of skill types, an Args list, and a Returns section. Every sentence contributes useful information without unnecessary fluff, making it easy for an agent to parse.

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?

With 5 parameters, an output schema, and annotations, the description covers all necessary aspects: it explains the skill execution model, the meaning of each parameter (already in schema), and the return JSON structure. It also accounts for edge cases like timeout with the 'timed_out' key. There is no obvious missing information that would hinder correct invocation.

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%, so the schema already documents all parameters. The description's Args section largely repeats the schema descriptions (e.g., 'Primary input passed to the skill as the first argument' matches the schema exactly). It adds no new semantic nuance beyond what the schema provides, so the baseline 3 is appropriate.

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 opens with 'Invoke a discovered skill by name and return its result', which is a specific verb+resource pair that clearly identifies the tool's function. It also differentiates from sibling tools by focusing on skills rather than commands, files, memory, or web search.

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 provides clear context on when to use the tool: when a skill is discovered. It explains the three skill types and their execution methods, which helps the agent understand what will happen. However, it does not explicitly state alternatives or exclusion criteria, such as 'For raw shell commands, use agent_execute_command', so it stops short of a full 5.

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/oemoem12/lmstudio-agent-mcp'

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