Skip to main content
Glama

capability_invoke

Invoke a capability by ID: prompt-mode returns content path and instructions; command-mode runs only with explicit execution permission.

Instructions

Invoke a capability. Prompt-mode capabilities return their content path and instructions; command-mode capabilities require explicit execution permissions.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "<id>"
    },
    "name": "capability_invoke"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
cwdNo
inputNoPrompt or input passed to the capability.
timeoutNo
allow_executeNo
allow_external_contentNoExplicitly allow a prompt-mode content_path outside the capability directory and workspace. Keep false unless the user approved reading that file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.7.3
    • addedInput schema / properties / allow_external_content
      Added value: +{
      +  "default": false,
      +  "description": "Explicitly allow a prompt-mode content_path outside the capability directory and workspace. Keep false unless the user approved reading that file.",
      +  "type": "boolean"
      +}
  2. First observedv0.7.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden and does disclose two genuinely useful traits: prompt-mode returns a content path plus instructions, and command-mode is gated behind explicit execution permission. It omits whether invocation causes side effects, what happens on timeout, how failures surface, or what command-mode returns, which matters for a tool that can be authorized to execute.

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?

Two tight sentences with the core action front-loaded and the mode distinction immediately following; no filler. Brevity is close to over-compression given the tool's complexity, but no sentence is wasted.

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

Completeness2/5

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

This is a six-parameter invocation tool with an execution-permission flag, no annotations, and no output schema, so the description should do more. It never explains how `id` is resolved, what `cwd` scopes, what result command-mode returns, or how errors and timeouts are reported, leaving an agent unequipped for the risky path.

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 coverage is only 33%, so the description must compensate, and it partially does by tying 'explicit execution permissions' to allow_execute and 'content path' to the prompt-mode flow that allow_external_content guards. The required `id`, plus `cwd` and `timeout`, receive no explanation anywhere, leaving half the surface undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Invoke') and resource ('capability'), and splits behavior into two named modes (prompt-mode vs command-mode), which is more precise than the name alone. It does not differentiate this tool from siblings such as capability_probe, capability_verify, or capability_get, so an agent is left to infer why one would invoke rather than probe or verify.

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

Usage Guidelines3/5

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

Implies usage in the sense that it tells you command-mode capabilities need explicit execution permission, which hints at the allow_execute flag, but gives no explicit when-to-use or when-not-to-use guidance. Nothing tells the agent how this relates to capability_probe or capability_verify, so routing between siblings remains guesswork.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.