Skip to main content
Glama

find_similar

Find functions in the same image that resemble the one at a given virtual address using explainable Jaccard similarity over mnemonic trigrams to locate inlined copies.

Instructions

Functions in the same image that look like the one at va.

Similarity is the Jaccard index over mnemonic trigrams: explainable, and good at finding the four copies of the same routine a compiler inlined.

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": {
      "key": "<key>",
      "va": "<va>"
    },
    "name": "find_similar"
  }
}

Input Schema

NameRequiredDescriptionDefault
vaYes
keyYes
limitNo
sessionNo
min_similarityNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two meaningful traits: results are restricted to the same image, and similarity is an explainable Jaccard index over mnemonic trigrams. It says nothing about result ordering, whether the query function is included in the output, how `min_similarity` prunes candidates, or cost/performance on large images.

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

Conciseness5/5

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

Two short sentences, front-loaded with the core operation and followed by the one piece of context an agent needs to trust the results. Nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/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 shape need not be described, but for a 5-parameter tool with zero schema documentation and no annotations the description is under-specified. An agent cannot tell what `key` or `session` refer to, or what `min_similarity` and `limit` do to results.

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

Parameters2/5

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

Schema description coverage is 0% across five parameters, and the description only gestures at `va` as the anchor address. `key`, `limit`, `min_similarity`, and `session` are left entirely unexplained in both schema and description, which is a substantial gap for a 5-parameter tool.

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 description states a concrete operation on a concrete resource: find functions in the same image whose code resembles the function at address `va`. The added note on the similarity metric (Jaccard over mnemonic trigrams) further pins down what 'similar' means. It does not name a sibling such as `diff` or `diff_module` to contrast against, so it stops short of 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 Guidelines3/5

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

Usage is implied by the scope statement ('same image') and by the example of locating inlined copies of a routine, which is a genuine use case. There is no explicit when-not guidance, no mention of how this differs from `diff`/`diff_module`/`diff_images`, and no stated prerequisites for the required image key.

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