Skip to main content
Glama

api_calls

Resolve imported API calls in an image or function, including IAT thunk forms, to classify unknown binaries by behavior such as crypto, network, registry, or process injection.

Instructions

Imported APIs called in an image (or in one function), grouped by API.

Resolves call [rip+iat] and the mov reg,[iat]; call reg thunk form, so a stripped binary still tells you it talks to kernel32!CreateFileW. This is the fast way to classify an unknown function: crypto, network, registry, process injection.

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>"
    },
    "name": "api_calls"
  }
}

Input Schema

NameRequiredDescriptionDefault
vaNo
keyYes
limitNo
sessionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/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 does add real value by disclosing IAT resolution behavior and that it works on stripped binaries. However, it omits operational traits such as how the `limit` default of 2000 affects results, whether a session/attach is required, or what happens when a `va` is absent.

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 core purpose is front-loaded in the first sentence, and the thunk-resolution detail earns its place. The closing classification sentence is useful but slightly promotional, and the multi-line formatting adds little structure beyond raw prose.

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?

An output schema exists, so return-value explanation is not needed, and the description covers behavior well enough to call the tool on an image. It falls short for a tool with four undocumented parameters and no annotations, since an agent cannot tell what `key` or `session` require.

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 four parameters. The description only implies that `va` scopes results to one function; it says nothing about `key`, `limit` (default 2000), or `session`, leaving most parameters undocumented in both schema and prose.

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 specific verb and resource: imported APIs called in an image or a single function, grouped by API. The note about resolving `call [rip+iat]` and the `mov reg,[iat]; call reg` thunk form makes the exact retrieval behavior concrete. It does not explicitly name how it differs from sibling tools like api_sites or emu_calls, 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?

"This is the fast way to classify an unknown function: crypto, network, registry, process injection" gives a clear use case, but there is no explicit when-not-to-use guidance and no sibling alternative is named. Usage must be partly inferred from the tool name and sibling list.

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