Skip to main content
Glama

parameter.add

Adds a new parameter to a function with a specified data type and register or stack storage, enabling function signature updates.

Instructions

Add a new parameter to a function with a chosen type and storage.

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>",
      "function_start": "<function_start>",
      "name": "<name>",
      "data_type": "<data_type>"
    },
    "name": "parameter.add"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
ordinalNo
registerNo
data_typeYes
session_idYes
stack_offsetNo
function_startYes

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 supplied, so the description carries the full burden. It signals a mutation ('Add') but says nothing about required session context, whether the function must be disassembled or analyzed first, whether the change is undoable, or how the 'storage' choice (register vs stack_offset) is validated — a significant gap for a 7-parameter mutation.

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

Conciseness4/5

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

A single front-loaded sentence with no filler; the key action and the two configurable aspects come first. It is efficient, though its brevity is partly under-specification rather than disciplined concision.

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 seven parameters, zero schema descriptions, no annotations, and no output schema, the definition leaves the agent without the information needed to form a correct call. Value domains for data_type, the meaning of function_start as int vs string, and ordinal semantics are all unaddressed.

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%, and the description only loosely gestures at data_type ('type') and register/stack_offset ('storage'). It says nothing about session_id, function_start (which accepts int or string), or ordinal, so four of the seven parameters remain fully undocumented.

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 concrete verb and resource ('Add a new parameter to a function') plus the two aspects being chosen (type and storage), which distinguishes it from parameter.move/remove/replace by action. It does not explicitly name a sibling or clarify boundary cases.

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 guidance on when to use this versus parameter.replace or parameter.move, no prerequisites, and no statement about what happens if the parameter already exists. The only implied usage is 'a function needs a new parameter', which an agent could infer from the name alone.

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