Skip to main content
Glama

search

Read-onlyIdempotent

Find project items by words across compositions, assets, feedback, rules, templates, and commits, returning matching refs with brief details for follow-up lookup.

Instructions

Find anything in the project by words, in brief: compositions, assets, reference videos, pictures, sounds and subtitles under media/, feedback (comments, findings and good / bad marks, by address, note, tags, @mentions and phrases), templates, reusable feedback phrases, lint and taste rules (rule), and earlier changes in the history (commit: by message, operation, the feedback it answered and what it was based on). Each hit is a ref (feedback:, rule:, commit:, asset:…) with a title and a one-line detail: pick the few that matter and open each with lookup, as a web search is followed by opening a page. Every word must match somewhere (name, path, description, note, tag), as written or, for Chinese, by its pinyin (卡片: "kapian" or "kp"); an inverted index answers it. No words lists everything of the kinds asked (newest change first). #word (or tag) keeps hits with that tag. "good" / "bad" (or 好 / 不好) narrow examples by verdict; 可读性<=2 (or >=, =, <, >) keeps marks scored that way on a dimension. kind keeps one kind or a list of kinds. Best matches first. The Studio's Ctrl/⌘+K palette asks this.

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

Input Schema

NameRequiredDescriptionDefault
qYesWords, e.g. "button bad", "reference good 卡片", "teaser/endcard"
tagNoKeep hits with this tag (as #tag in q)
kindNoOne kind, or a list of kinds
limitNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.2
    • changedInput schema / properties / kind / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "composition",
      -      "asset",
      -      "reference",
      -      "media",
      -      "example",
      -      "template",
      -      "phrase",
      -      "rule",
      -      "commit"
      -    ]
      -  },
      -  {
      -    "items": {
      -      "enum": [
      -        "composition",
      -        "asset",
      -        "reference",
      -        "media",
      -        "example",
      -        "template",
      -        "phrase",
      -        "rule",
      -        "commit"
      -      ]
      -    },
      -    "type": "array"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "composition",
      +      "asset",
      +      "reference",
      +      "media",
      +      "example",
      +      "template",
      +      "phrase",
      +      "rule",
      +      "commit",
      +      "feedback"
      +    ]
      +  },
      +  {
      +    "items": {
      +      "enum": [
      +        "composition",
      +        "asset",
      +        "reference",
      +        "media",
      +        "example",
      +        "template",
      +        "phrase",
      +        "rule",
      +        "commit",
      +        "feedback"
      +      ]
      +    },
      +    "type": "array"
      +  }
      +]
  2. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered; the description adds genuinely non-obvious behavior: conjunctive matching ('every word must match somewhere'), inverted-index matching across name/path/description/note/tag, pinyin fallback for Chinese, verdict and score-comparison filters, and 'best matches first' ranking. It omits the truncation/limit behavior (default 20, max 200), which matters for a search tool, so it is not a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The essential action and the search-then-lookup workflow are buried after a very long mid-sentence enumeration of kinds, and the whole block reads as a run-on chain of clauses rather than front-loaded guidance. Almost every clause carries real information, but a one-line lead ('full-text search over the project index; open hits with lookup') followed by the syntax rules would be materially easier to parse.

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 4-parameter, complex search tool with no output schema, the description supplies the missing return contract (each hit is a ref like feedback:<id> / rule:<id> with a title and one-line detail) and the sorting rule. The remaining gap is result-size behavior – what happens past the limit and whether narrow queries are preferred over broad ones to avoid truncation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 75% schema coverage the baseline is 3, and the prose goes well beyond the schema for q: match semantics, pinyin transliteration forms (卡片 → 'kapian' or 'kp'), #tag syntax, good/bad verdict terms, and the 可读性<=2 family of comparators. tag and kind are both explained in the description consistently with the schema. The limit parameter is documented in neither place, which keeps this below 5.

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 and resource ('Find anything in the project by words') and enumerates the indexable material: compositions, assets, reference videos, pictures, sounds, subtitles, feedback, templates, phrases, lint/taste rules and history commits. The final line ties it to a concrete entry point ('The Studio's Ctrl/⌘+K palette asks this'), so an agent knows exactly which capability this is.

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?

Gives an explicit two-step workflow – search returns refs, then 'pick the few that matter and open each with lookup, as a web search is followed by opening a page' – which routes the agent to the lookup sibling. Also clarifies the empty-query case ('No words lists everything of the kinds asked'). It stops short of stating exclusions, e.g. when a caller should prefer find_media, hub_search or changes/history over this tool.

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

Deploy Server

Other Tools