Skip to main content
Glama
robotraconteur-mcp

robotraconteur-mcp

by johnwason

robotraconteur_call_function

Calls a function on a discovered Robot Raconteur service using positional or named arguments, with optional timeout handling for generator calls.

Instructions

Call a function of a service. Arguments are given in order as an array, or by name as an object. Fields left out of a structure are filled with zero or empty values. A function that streams results as a generator is run to completion, and its last results are returned. The call waits until the generator finishes, so it cannot be stopped partway; to be able to stop a long generator, such as a trajectory, run it as a call_function step of robotraconteur_start_sequence, which robotraconteur_cancel_sequence aborts. Tool calls sent together may run at the same time, in any order. To run calls one after another, send them one at a time, or use robotraconteur_start_sequence for exact order and timing.

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": {
      "service": "<service>",
      "name": "<name>"
    },
    "name": "robotraconteur_call_function"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName of the function, as listed by robotraconteur_describe
objectNoPath to a sub object, such as arm or arm.tool[0]. Leave unset for the root object
serviceYesName of the service, as listed by robotraconteur_discover
argumentsNoAn array of arguments, or an object keyed by parameter name
timeout_sNoFor a generator, abort after this many seconds. The default is 60
generator_inputsNoFor a generator that takes a value at each step, the values to send

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and discloses important behavior: generators run to completion and cannot be stopped partway, omitted structure fields default to zero or empty, and concurrent calls may run in any order. It does not discuss permissions, errors, or side effects, which is a remaining gap for an arbitrary function-call tool.

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

Conciseness5/5

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

The description is front-loaded with the core action, then adds behavior and alternatives in a logical order. Every sentence contributes a constraint or routing hint, with no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter invocation tool with no output schema, the description covers arguments, generator completion, cancellation alternatives, and call ordering. It stops short of describing normal return values or error behavior, but otherwise gives enough context to call it correctly.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds useful meaning beyond the schema by explaining that arguments may be positional arrays or named objects and that omitted struct fields are filled with defaults.

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

Purpose5/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: 'Call a function of a service.' It also clarifies argument forms and generator handling, making the tool distinguishable from sequence-oriented siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly explains when to use alternatives: use robotraconteur_start_sequence to stop or order long generators, robotraconteur_cancel_sequence to abort, and send calls one at a time for sequential execution.

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