Skip to main content
Glama
Unilytics MCP Server

Unilytics MCP Server

Official

use_connected_tool_write

Destructive

Run a connected MCP server's write or send action by capability_id, requiring user approval for each exact call and preventing duplicate sends.

Instructions

Runs one tool of the user's own MCP server that can change data or send something, by the capability_id from list_connected_tools. Every call needs the user's approval of that exact call: the first call returns APPROVAL_REQUIRED with a link to the Unilytics app, and after the user approves it the identical call (same project, tool and arguments) runs once. Within 10 minutes a repeat of an identical call returns the first call's outcome instead of sending it again; later, an identical call needs a new approval. While an identical call's outcome is unknown, it isn't sent again until the user resolves it in the app. idempotency_key (optional) names one operation across calls. Experimental. 2 credits when the call reaches the server; refusals, approvals and repeats are free.

Args:
    project_id: The client project (from list_projects).
    capability_id: The tool's capability_id from list_connected_tools.
    arguments: The tool's arguments, as its input schema describes.
    idempotency_key: Optional, 8–128 letters, digits, '.', '_', ':' or '-': one operation's 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": {
      "project_id": "<project_id>",
      "capability_id": "<capability_id>",
      "arguments": "<arguments>"
    },
    "name": "use_connected_tool_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
argumentsYes
project_idYes
capability_idYes
idempotency_keyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.2

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the destructiveHint/openWorldHint annotations: it discloses the APPROVAL_REQUIRED first-call response, the exact-match approval semantics, the 10-minute dedupe window, the unknown-outcome hold, and the 2-credit cost with free refusals/approvals/repeats. That is precisely the behavioral context an agent needs before invoking a destructive, open-world tool.

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?

Front-loads the core action, then layers the approval and idempotency rules in a logical order with no filler sentences. The approval paragraph is dense and could be split for scanability, but every clause carries operational meaning.

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?

Covers the hard parts of a destructive, nested-argument, no-output-schema tool: approval flow, retry semantics, cost, and experimental status. It does not describe what a successful return looks like beyond the APPROVAL_REQUIRED case, which is a minor residual gap given there is no output schema.

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

Parameters5/5

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

Schema coverage is 0%, so the description must carry the load, and it does: project_id is sourced from list_projects, capability_id from list_connected_tools, arguments are deferred to the target tool's own schema, and idempotency_key gets both a format constraint (8–128 chars, allowed character set) and a semantic definition (names one operation across calls).

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?

States a specific verb and resource ("Runs one tool of the user's own MCP server") and narrows scope to tools "that can change data or send something," which separates it from the read-side sibling. The capability_id provenance from list_connected_tools makes the target unambiguous.

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

Usage Guidelines4/5

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

Explains the approval gate, the 10-minute identical-call window, and when a new approval is needed, so an agent knows what to expect on first vs. repeat invocation. It never explicitly says to use the non-write sibling for read-only tools, which is the one routing gap.

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