Skip to main content
Glama

source.file.add

Registers a source file record with a program's source file manager, linking a session, path, and optional identifier metadata for analysis traceability.

Instructions

Register a source file record with the program's source file manager.

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>"
    },
    "name": "source.file.add"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
id_typeNo
session_idYes
identifier_hexNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and largely drops it. It does not say whether the path must already exist on disk, what happens on duplicate registration, whether the operation mutates server state reversibly, or what errors occur for an invalid session.

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 single sentence is front-loaded and free of filler, so nothing needs trimming. The problem is the opposite of verbosity: the brevity leaves the definition under-specified rather than efficient.

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?

With no annotations, no output schema, and zero parameter documentation for a four-parameter tool requiring a session and a path, the definition is not complete enough to call confidently. At minimum it should explain what identifier_hex and id_type control and what registration returns or guarantees.

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

Parameters1/5

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

Schema description coverage is 0% across four parameters, and the description adds no meaning for any of them. The roles of path, session_id, id_type, and identifier_hex — particularly whether id_type is an enum-like selector and how identifier_hex relates to path — are completely undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Register a source file record" gives a verb and a resource, and the mention of the program's source file manager scopes it to source-file registration rather than maps or bookmarks. However, it never distinguishes this from closely related siblings like source.map.add or project.file.info, and "register" leaves unclear whether a record is created, parsed, or merely registered by path.

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 when-to-use guidance at all: no statement of prerequisites (a valid program session_id), no condition under which a file should be registered versus listed or removed, and no note about ordering relative to analysis tools. The agent must infer usage entirely from the 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