Skip to main content
Glama

source.map.add

Add a source mapping entry that links a specific source file line to an address range, enabling source-to-binary correspondence during reverse-engineering analysis.

Instructions

Add a source mapping entry from a source line to an address range.

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": {
      "session_id": "<session_id>",
      "path": "<path>",
      "line_number": "<line_number>",
      "base_address": "<base_address>",
      "length": "<length>"
    },
    "name": "source.map.add"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
lengthYes
session_idYes
line_numberYes
base_addressYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and says almost nothing: it does not state whether duplicates or overlapping ranges are rejected, whether existing mappings are replaced, whether an id is returned, or what permissions/session state are required. For a write operation with zero annotation coverage this is a significant gap.

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?

A single front-loaded sentence with no filler, but its brevity reflects under-specification rather than economy — the one clause present is doing work that five required parameters demand more of.

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?

Given 5 required parameters, no annotations, no output schema, and 0% schema coverage, an agent has to guess at most inputs and at the failure modes. The description establishes the concept but not enough to call the tool correctly on the first attempt.

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 required parameters, so the description must compensate and largely doesn't. "Source line" maps loosely to line_number and "address range" to base_address plus length, but path and especially session_id are left unexplained, as are types and accepted address formats.

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 and resource ("Add a source mapping entry") plus the mapping's shape (source line → address range), which is enough to separate it from the sibling list/remove variants by name. It stops short of naming those siblings or defining what a "source" is here.

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?

No indication of when this tool should be used instead of source.map.list or source.map.remove, nor of prerequisites such as whether the referenced source path must already exist. Usage is only inferable from the tool name.

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

Deploy Server

Other Tools