Skip to main content
Glama

parameter.replace

Replace an existing function parameter by ordinal or name to update its name, data type, register, or stack offset.

Instructions

Replace an existing parameter definition by ordinal or name.

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": "parameter.replace"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
ordinalNo
new_nameNo
registerNo
data_typeNo
session_idYes
stack_offsetNo
function_startYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/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 for a mutating tool, and it discloses almost nothing. It does not say whether replacement is destructive, whether fields not supplied (register, data_type, stack_offset) are cleared or preserved, whether it requires an open session, or what the result looks like.

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, and the key scope word "existing" appears early. For an 8-parameter mutation tool it is arguably undersized, but nothing present is wasted.

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, 8 parameters at 0% description coverage, and no explanation of field semantics or replace-vs-create behavior, the definition leaves an agent unable to invoke this correctly without trial and error.

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 8 parameters, so the description must compensate, and it only illuminates name/ordinal as mutually exclusive locators. Six parameters — new_name, register, data_type, stack_offset, session_id, and function_start — get no meaning from either the schema or the description, and the oneOf on function_start is unexplained.

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 ("Replace an existing parameter definition") plus the two locator strategies (ordinal or name), so the agent knows precisely what entity is affected. It does not, however, differentiate itself from siblings such as parameter.add, parameter.remove, or layout.struct.field.replace, so the reader must infer that this is the in-place update path.

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?

The word "existing" implies a precondition (the parameter must already be defined), which is useful context, and "by ordinal or name" hints at two invocation modes. There is no explicit when-to-use versus parameter.add/parameter.move/parameter.remove guidance and no statement of what happens if the target does not exist.

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