Skip to main content
Glama

WorldAPI tokens and audit log

list_tokens
Read-onlyIdempotent

Lists WorldAPI tokens without exposing secrets, showing names, permissions, origins, creators, and expiry; enable groups for permission details or audit for recent client changes.

Instructions

Every WorldAPI token (never the secret itself): name, groups and permissions, what they resolve to, origin, creator, expiry. groups adds every group and permission with what it allows. audit answers instead what clients changed through WorldAPI, newest first: who (a token or panel:<account>), when, method, path, target, status, and details. Tokens are made in game (/worldapi token create) or WorldAPI's admin panel.

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": "list_tokens"
  }
}

Input Schema

NameRequiredDescriptionDefault
auditNoThe audit log instead
groupsNoAdd the groups and permissions

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv5.0.0
    • addedInput schema / properties / audit
      Added value: +{
      +  "description": "The audit log instead",
      +  "properties": {
      +    "actor": {
      +      "description": "A token, or `panel:<account>`",
      +      "type": "string"
      +    },
      +    "cursor": {
      +      "description": "`nextCursor` from the previous page",
      +      "type": "string"
      +    },
      +    "limit": {
      +      "description": "Page size: 0 only counts",
      +      "maximum": 500,
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observedv4.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description still adds real behavior beyond them: the guarantee that token secrets are never exposed, that audit results are ordered newest first, and that an actor may be either a token or a `panel:<account>` principal. It does not cover paging semantics or result size, which the schema carries instead.

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?

Four dense sentences, front-loaded with the default return shape before introducing the two mode switches. Every clause carries information about returned content or provenance. Slightly awkward phrasing ('`audit` answers instead what clients changed') costs a little clarity but no words are wasted.

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?

There is no output schema, so the description carries the burden of describing returns, and it does so field by field for both modes, including ordering and actor identity format. For a two-parameter, non-destructive read tool that is essentially complete. The only gap is paging behavior when `limit`/`cursor` are used with `audit`, which an agent would have to discover from the schema alone.

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 100%, so the baseline would be 3, but the description earns more by explaining what each parameter actually yields: `groups` returns every group and permission together with what it allows, and `audit` returns who, when, method, path, target, status and details. That tells the agent what selecting a parameter buys, not just its type. The `limit`/`cursor` paging parameters are left entirely to the schema.

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 the resource precisely (WorldAPI tokens, with the explicit caveat that secrets are never returned) and enumerates the fields returned: name, groups and permissions, origin, creator, expiry. It also carves out the second mode, the audit log of what clients changed through WorldAPI. It stops short of 5 because it never uses a plain verb like 'list' and the dual-mode framing takes a sentence to parse, but the resource and scope are unmistakable.

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

Usage Guidelines3/5

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

It gives usable mode-selection guidance: `groups` adds groups and permissions, and `audit` answers 'instead' with change history, so an agent knows these are alternative views rather than additive filters. It also notes tokens are created in game or via the admin panel, implying this tool is read-only for token management. What is missing is any when-not guidance or differentiation from the adjacent log-reading sibling (get_server_log), so the agent must infer which log surface to pick.

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