Skip to main content
Glama

find

Read-onlyIdempotent

Search case-sensitive object names across a design using globs, including recursive descent to any depth. Use it when the exact path is unknown, then resolve or browse the hierarchy.

Instructions

Search case-sensitive object names across the loaded design with a glob. Use this when an exact path is unknown; use resolve once a path is known or get_hierarchy to browse structure. Use ["**", "state"] to search names at any depth. Each glob matches exactly one name; ** matches zero or more levels. Parameters and package members are source intent: use get_intent. Returns typed descriptors in matches plus count, has_more, and an opaque next_cursor for pagination.

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

Input Schema

NameRequiredDescriptionDefault
kindNoRestrict results to one design-object kind, or any.any
limitNoPage size; defaults to 20 and is capped at 200.
cursorNoOpaque next_cursor from the previous response; omit for the first page.
patternYesList of per-element case-sensitive globs. Use ** for recursive descent; optional top first.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.2.0
    • changedInput schema / properties / pattern / description
      Previous value: -"Case-sensitive glob; include a dot to match full hierarchical paths."New value: +"List of per-element case-sensitive globs. Use ** for recursive descent; optional top first."
    • addedInput schema / properties / pattern / items
      Added value: +{
      +  "type": "string"
      +}
    • changedInput schema / properties / pattern / type
      Previous value: -"string"New value: +"array"
  2. Changed2 schema fields changedv0.1.25
    • changedInput schema / properties / limit / description
      Previous value: -"Page size; defaults to 50 and is capped at 200."New value: +"Page size; defaults to 20 and is capped at 200."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "result": {
      +      "additionalProperties": true,
      +      "title": "Result",
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "result"
      +  ],
      +  "title": "findOutput",
      +  "type": "object"
      +}
  3. Changed5 schema fields changedv0.1.9
    • addedInput schema / properties / cursor / description
      Added value: +"Opaque next_cursor from the previous response; omit for the first page."
    • addedInput schema / properties / kind / description
      Added value: +"Restrict results to one design-object kind, or any."
    • addedInput schema / properties / kind / enum
      Added value: +[
      +  "instance",
      +  "net",
      +  "port",
      +  "module",
      +  "any"
      +]
    • addedInput schema / properties / limit / description
      Added value: +"Page size; defaults to 50 and is capped at 200."
    • addedInput schema / properties / pattern / description
      Added value: +"Case-sensitive glob; include a dot to match full hierarchical paths."
  4. First observedv0.1.8

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description goes further by disclosing matching semantics (case-sensitive, one glob matches exactly one name, ** matches zero or more levels) and the pagination contract (count, has_more, next_cursor). The return-shape sentence partly duplicates the existing output schema, which keeps it from 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.

Conciseness4/5

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

Dense and front-loaded: purpose first, routing second, mechanics third. Nearly every sentence carries weight, but the closing sentence about return fields overlaps the output schema and could be trimmed to just the pagination hint.

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?

For a 4-parameter search tool with full schema coverage, annotations, and an output schema, the description supplies the two things structured data cannot: glob matching semantics and sibling routing. Nothing an agent needs to call it correctly is missing.

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 100% schema coverage the baseline is 3, and the description earns above that by explaining glob depth semantics and the recursive-descent form for `pattern`, plus a worked example ["**", "*state*"]. It leaves `kind` entirely to the schema, which already carries an enum and description, so this is additive but not exhaustive.

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 ("Search case-sensitive object names across the loaded design with a glob") and explicitly separates itself from resolve, get_hierarchy, and get_intent. An agent can pick it out of a 26-tool sibling list without opening a schema.

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

Usage Guidelines5/5

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

Gives a clear when: "use this when an exact path is unknown," plus two named alternatives with the exact condition that selects each (resolve once a path is known; get_hierarchy to browse structure) and a routing note for parameters/package members to get_intent. This is textbook when/when-not guidance.

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