Skip to main content
Glama

modo_search_examples

Read-only

Search verified Modo code examples and API notes from your own codebase to write reliable scripts, plugins, and SDK calls before coding.

Instructions

Search working Modo code and verified API notes from this user's own codebase. Categories: 'script' (standalone lx.eval idioms), 'plugin' (lxserv command/listener patterns), 'sdk' (functions and classes from the bundled modo/ and lxu/ packages, with real signatures), 'facts' (hard-won notes on what actually works in Modo). Consult this before writing non-trivial Modo code -- it is far more reliable than recall.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
categoryNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds genuine context beyond that: the corpus is the user's own working code plus verified notes, and the results are asserted to be more reliable than model recall, which is a useful trust signal. It does not discuss result freshness, ranking, or empty-result behavior.

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 purpose sentence leads, the category breakdown follows, and the call-to-action closes - a sensible ordering with no wasted framing. The parenthetical glosses are dense but each one conveys real information about what the category contains.

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?

An output schema exists, so return-value description is legitimately omitted, and the category space is fully explained. The remaining gap is query semantics: for a search tool with three parameters and zero schema descriptions, an agent still cannot tell what kind of query string will match well or how limit interacts with ranking.

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 0% and the schema carries only titles and defaults, so the description must compensate. It does this well for 'category' by defining all four enum values with concrete content ('real signatures', 'lxserv command/listener patterns'), but says nothing about how 'query' is interpreted (keyword vs. semantic) or what 'limit' bounds.

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 and resource ('Search working Modo code and verified API notes') and scopes it to 'this user's own codebase', which is a meaningful distinction from generic recall. It never names a sibling (e.g., modo_get_sdk_source or modo_find_commands), so an agent must infer the boundary itself, which keeps it below a 5.

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?

'Consult this before writing non-trivial Modo code -- it is far more reliable than recall' gives an explicit triggering condition and a rationale for preferring this tool. It stops short of stating when NOT to use it or naming which sibling to use for raw SDK source versus example search.

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