Skip to main content
Glama

search_methods

Read-onlyIdempotent

Find methods by name substring to pinpoint hook targets, returning owning class, return type, and token; optionally filter by owner class or assembly.

Instructions

按名字搜索方法,返回所属类、返回类型与 token。owner 语义与 search_fields 一致。

Args: pattern: 方法名子串(大小写不敏感)。 offset: 跳过前多少条(配合 total / has_more 翻页)。 limit: 本页最多返回多少条(上限 2000)。 owner: 限定在某一个类里搜,语义与 search_fields 一致 (短名必须唯一,否则拒绝并给 candidates)。 assembly: 程序集名子串,仅用于 owner 消歧。

Returns: {ok, handle, total, offset, limit, returned, has_more, items} total 是真实匹配总数。

Input Schema

NameRequiredDescriptionDefault
limitNo
ownerNo
offsetNo
patternYes
assemblyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations (readOnly/idempotent/non-destructive), the description adds real behavioral detail: a short owner name must be unique or the call is rejected with candidates, assembly is only for disambiguation, and limit is capped at 2000. It does not mention cost or auth, but the added rejection/uniqueness semantics are substantive.

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?

Front-loads the purpose and return shape, then a compact Args list, then the return envelope. Slightly redundant — the owner semantics are stated twice (once in the intro, once in Args) — but otherwise efficient.

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?

No output schema exists, and the description compensates by spelling out the return envelope ({ok, handle, total, offset, limit, returned, has_more, items}) and clarifying that total is the true match count. Combined with full param coverage, it is nearly complete; only the numeric defaults are 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?

Schema description coverage is 0%, so the description must carry the load, and it does: it defines pattern (case-insensitive substring), offset (skip count for paging), limit (page size, max 2000), owner (scoped, unique-short-name rule), and assembly. It omits the default values (limit=100, offset=0) present in the schema, a minor gap.

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+resource ("按名字搜索方法") and immediately lists what is returned (owning class, return type, token), so an agent knows exactly what the tool yields. It implicitly distinguishes itself from search_classes/search_fields via the method-name focus and the owner cross-reference, though it never names those siblings explicitly as alternatives.

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?

It gives useful in-context guidance — offset pairs with total/has_more for paging, and assembly exists only for owner disambiguation — but it never says when to choose this over search_fields, search_classes, or find_hook_target. Usage is implied rather than stated against alternatives.

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