Skip to main content
Glama

Phlece

Set an agent's limits

phlece_set_policy

Spending caps (per 24 hours and per call, in USDC), approved providers, and which actions Phlece may prepare for an agent wallet (trade, launch, jobs, payments). The first policy is signed by the agent wallet itself and names its owner; afterwards only the owner can change it. Call once without signature to get the message, then again with issued and signature.

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": {
      "agentWallet": "<agentWallet>"
    },
    "name": "phlece_set_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
allowNoWhich kinds of action Phlece may prepare; anything not set true is refused.
ownerNoThe wallet that controls this policy (default: unchanged, or the agent wallet for a first policy).
issuedNo
signatureNo
agentWalletYes
dailyCapUsdcNoMost USDC Phlece may prepare for this wallet per 24 hours. Omit for no cap.
perCallCapUsdcNoMost USDC for one trade, launch, job payment or x402 call. Omit for no cap.
approvedProvidersNoProvider listing ids allowed for payments; empty = any.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare a non-read-only, open-world, non-idempotent mutation, and the description adds real value on top with the signing/ownership model. What it omits is equally important: whether a second signed call replaces the whole policy or merges with it (relevant since idempotentHint=false), and whether lowering caps takes effect immediately for in-flight work.

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 tight sentences with no filler; the cap/provider/action enumeration, the authority rule, and the two-step signing flow each earn their place. The opening noun-phrase construction makes the agent work slightly harder than a leading verb would.

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 an 8-parameter mutation with a nested object, no output schema and no annotations covering auth, the description covers the two hardest things an agent must get right — who is allowed to sign and the two-call issuance flow. Gaps remain around return payload of the first call and the merge-vs-replace semantics of repeat calls.

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 63%, and the description fills the most important gaps by explaining that caps are denominated in USDC over a 24-hour window and per single trade/launch/job/x402 call, and that the action flags map to trade, launch, jobs and payments. It adds no meaning for `owner` or the required `agentWallet`, so it does not fully close the coverage gap.

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 enumerates exactly what the policy controls (24h and per-call USDC caps, approved providers, allowed action types), which makes the resource concrete. However, it opens with a noun phrase rather than a verb, so the write action is only inferable from the tool name and title ('Set an agent's limits'), and it never contrasts itself with phlece_get_policy.

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?

It gives explicit invocation sequencing — 'Call once without signature to get the message, then again with issued and signature' — which is the non-obvious part of using this tool. It also states the first-policy vs. subsequent-change authority rule. It stops short of naming phlece_get_policy as the read-side alternative.

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