Skip to main content
Glama

find_function_by_string

Read-only

Find functions whose strings contain a case-insensitive text match, with paging and limits to narrow reverse-engineering results.

Instructions

Find the functions whose strings contain a text, case-insensitively: a numbered legend, entry name: 1 2 rows, and, on a miss, texts built at run time as built_by written_at text rows.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax rows per table, and legend strings (default 50, max 300).
filterYesA string under 4 printable characters must equal it.
offsetNoRows to skip (paging).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.3.0
    • changedInput schema / properties / filter / description
      Previous value: -"Case-insensitive substring of the referenced string."New value: +"A string under 4 printable characters must equal it."
    • changedInput schema / properties / limit / description
      Previous value: -"Max rows and legend strings (default 50, max 300)."New value: +"Max rows per table, and legend strings (default 50, max 300)."
    • changedInput schema / properties / offset / description
      Previous value: -"Function rows to skip first (paging)."New value: +"Rows to skip (paging)."
  2. First observedv0.2.1

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds genuinely useful behavior beyond that: matching is case-insensitive, and results come back as a numbered legend plus `entry name: 1 2` rows, with runtime-built texts reported separately via `built_by written_at text` rows. However, that output description is so compressed that it is hard to parse, so the added context is only partially usable.

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?

It is a single sentence and front-loads the purpose correctly, but the second half after the colon crams three poorly distinguished output concepts into one clause. The density hurts readability rather than saving space; splitting into purpose and output sentences would be clearer.

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?

With no output schema, the description carries the burden of explaining return values, and it attempts this with the legend/row description, but the explanation is opaque enough that an agent cannot reliably know what a result looks like. Paging behavior via limit/offset is left to the schema. It is minimally adequate for a 3-parameter search tool but not complete.

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 100%, so filter, limit, and offset are already documented with defaults and constraints. The description adds only that matching is case-insensitive and involves the string 'containing' the text, which is marginal over the schema. Baseline 3 applies.

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?

The opening clause states a specific verb and resource: find functions whose contained strings match a text, case-insensitively. That is enough for an agent to distinguish it from generic tools like search or strings. It does not name or contrast any sibling (e.g., function_strings, find_crypto_constants), so it falls short of 5.

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

Usage Guidelines2/5

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

There is no statement of when to use this tool versus alternatives such as function_strings, strings, or search, and no prerequisites or exclusion conditions. The trailing clause about hits and misses is about output, not about choosing the tool. An agent must infer applicability entirely from the purpose clause.

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