Skip to main content
Glama

prepare_use_portal

The Portal: prepare (unsigned) using a Portal disk you hold on one of YOUR crews: x3 points for 48 hours, and the disk is burned. One Portal at a time per crew and a disk must be used within 7 days of purchase. Refused with the reason if you do not hold it, it is used or expired, or the crew is not yours or already has a Portal running. Costs only gas.

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": {
      "wallet": "<wallet>",
      "portalId": "<portalId>",
      "crewId": "<crewId>"
    },
    "name": "prepare_use_portal"
  }
}

Input Schema

NameRequiredDescriptionDefault
crewIdYesYour crew id.
walletYesYour own 0x wallet address. Nothing is sent from it; it is used to read your balance and allowance and to simulate.
portalIdYesThe Portal disk token id (my_shop_items lists yours).
contractSetNoOptional: "v2" (live Games Master v2 contracts) or "legacy" (retired original Season 1 contracts). Only needed if you hold the same id in both; otherwise v2 is tried first, then legacy.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does so well: it discloses that the call is unsigned preparation, that the disk is irreversibly burned, the one-Portal-per-crew limit, expiry rules, gas-only cost, and that it fails with a reason. It omits what the returned payload looks like, but the mutation and failure semantics are clear.

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-loaded with what it does and the reward, followed by constraints and refusal conditions; every clause conveys a rule. The prose is dense and slightly run-on in the middle, but there is 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 no-annotation, no-output-schema mutation-prep tool, it covers purpose, cost, side effects, limits and failure modes adequately. The only real gap is that it does not say the result is a transaction to be signed and submitted elsewhere, which the prepare_* family implies.

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

Parameters3/5

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

Schema coverage is 100%, so wallet, portalId, crewId and contractSet are already documented. The description's framing reinforces ownership semantics ('YOUR crews', 'a Portal disk you hold') but adds no syntax or format detail beyond the schema.

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 ('prepare') and resource (a Portal disk you hold on one of your crews) plus the concrete outcome ('unsigned', x3 points for 48 hours, disk burned). It is distinguishable from prepare_buy_portal because the description makes clear the caller must already hold the disk.

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?

Gives explicit preconditions — you must hold the disk, it must be unused and unexpired, the crew must be yours, and no Portal already running on that crew — plus the 7-day use window. It does not name a sibling alternative (e.g. buy the disk first via prepare_buy_portal), so it stops short of full routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources