Skip to main content
Glama

Troya Agent

Troya limits: guard a trade

guard_trade
Read-only

F78 Peisistratus, Troya's limits for any agent: before your agent buys a Robinhood Chain coin, send the coin, the trade size and your own limits (per trade, per day, already spent today, an optional allowlist of coins, strict to also refuse cautions). It runs a fresh Troya Gate check at that size and answers allow or block with every reason, signed by Troya's attestor. It never trades and never holds funds: your agent keeps its keys and obeys the answer.

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": {
      "token": "<token>",
      "amountEth": "<amountEth>"
    },
    "name": "guard_trade"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesToken contract address
strictNoAlso block when the Gate says caution (default false)
amountEthYesTrade size in ETH
allowTokensNoOnly these coins may be bought (optional)
maxEthPerDayNoYour limit per UTC day in ETH (optional)
spentTodayEthNoETH your agent already spent today (optional)
maxEthPerTradeNoYour limit per trade in ETH (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnly/openWorld/destructive annotations, the description discloses that a fresh Gate check runs at the requested size on every call, that the answer is signed by Troya's attestor, and that the tool never trades or holds funds while the agent keeps its keys. That custody and trust model is exactly the context an agent needs before routing funds decisions through it. It is consistent with readOnlyHint=true.

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?

Three sentences, front-loaded with the trigger condition and then the behavior and guarantees, with little wasted wording. The opening token 'F78 Peisistratus' is opaque codename noise that spends attention without informing an agent's decision.

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 seven-parameter check with no output schema, the description covers the call conditions, the side-effect profile, and the shape of the response (allow/block plus reasons, signed). It stops short of telling the agent what to do with the attestation signature or how to verify it, which is the only real gap.

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 description coverage is 100%, so all seven parameters are already documented, and the description mostly restates them in prose ('per trade, per day, already spent today', 'an optional allowlist', 'strict to also refuse cautions'). It adds modest framing by grouping them as 'your own limits' rather than adding semantics the schema lacks. Baseline 3 is appropriate where the schema carries the parameter burden.

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?

The description names a specific verb-and-resource pair ('guard a trade' / 'runs a fresh Troya Gate check at that size') and states the verdict returned ('allow or block with every reason'), so the function is unmistakable. It does not explicitly contrast itself with the sibling gate_check, which it alludes to only as an internal mechanism, so an agent must infer the difference.

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?

The trigger is explicit and well placed: 'before your agent buys a Robinhood Chain coin'. That is a clear when-to-use rule with no ambiguity. There is no when-not guidance and no named alternative (e.g. gate_check, quote_swap) for cases where a full limit check is unnecessary.

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.