Skip to main content
Glama

pm_derive_api_key

Derive Polymarket API credentials from your private key during one-time setup to enable authenticated trading via agent-trade. Requires PM_PRIVATE_KEY.

Instructions

Derive Polymarket API credentials from your private key (one-time setup). Requires PM_PRIVATE_KEY.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "pm_derive_api_key"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and it discloses the key prerequisite (PM_PRIVATE_KEY must be set) and that the operation is a one-time initialization. It does not say where the derived credentials are persisted, whether an existing credential set is overwritten, whether the call is idempotent, or whether it fails if creds already exist — meaningful gaps for a setup mutation.

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?

A single tight sentence that front-loads the action, then the source, then the one-time-setup framing, then the prerequisite. No wasted words.

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

Completeness3/5

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

For a zero-parameter tool this is nearly sufficient, but with no annotations and no output schema the description should still say what happens on success (are credentials stored, returned, or printed?) and what happens if called twice. That missing outcome behavior is the main incompleteness.

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?

The tool takes zero parameters, so the schema has nothing to document and the baseline of 4 applies. The description correctly signals that the private key comes from the PM_PRIVATE_KEY environment variable rather than a parameter, which resolves the obvious 'where do I pass the key?' question.

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?

States a specific verb and resource — 'Derive Polymarket API credentials' — plus the input source ('from your private key'), which is enough to distinguish it from trading and wallet tools. It does not explicitly contrast with the nearby sibling setup_wallet, which an agent might plausibly confuse with this credential-derivation step.

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?

'(one-time setup)' gives clear context for when to invoke it and implies it should not be called repeatedly. The prerequisite 'Requires PM_PRIVATE_KEY' further constrains usage. There is no explicit when-not guidance or naming of an alternative tool for credential management.

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