Skip to main content
Glama

Get Command Lua function

cmo_get_function
Read-onlyIdempotent

Fetches the official Command Lua documentation page for a named function; use cmo_search_api first when the exact function name is uncertain.

Instructions

Fetch one function's page from the official Command Lua docs (commandlua.github.io). Use cmo_search_api if you are not sure of the exact name.

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": {
      "name": "<name>"
    },
    "name": "cmo_get_function"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesFunction name, for example ScenEdit_AddUnit

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is fully covered. The description adds only that the content comes from an external docs site, consistent with openWorldHint, and says nothing about behavior on an unknown name or the shape of the returned page.

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?

Two short sentences with zero filler; the primary action and the disambiguation rule are both front-loaded in reading order.

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?

For a one-parameter, non-destructive docs lookup with full annotation and schema coverage, the description gives an agent everything needed to invoke it correctly. The only gap is what a failed lookup yields, which is minor here.

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?

Only one parameter, and schema description coverage is 100% with a concrete example ('ScenEdit_AddUnit'). The description's phrase 'exact name' hints at strict matching but adds no format, casing, or matching-rule detail beyond what the schema already supplies.

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 ('Fetch') and resource ('one function's page') plus the exact source domain (commandlua.github.io), which tells an agent precisely what it returns. It also names the sibling cmo_search_api, so the agent can distinguish this lookup tool from search without opening any schema.

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?

Provides one explicit routing rule: use cmo_search_api when the exact name is unknown. That covers the main ambiguity for a name-based lookup, but there is no guidance on what happens if the name is wrong or how this relates to the project/script siblings.

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