Skip to main content
Glama

Reorder personal AI keys

reorder_personal_ai_keys

Set the order Ankra tries your own AI keys in: key_ids lists every key on your profile exactly once, the first tried first. The ids come from list_personal_ai_keys. Only for the person themselves, in their own chat or over MCP with their own token: refused for a service account, an AI agent, a subworker and a dispatched or autonomous run.

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": {
      "key_ids": "<key_ids>"
    },
    "name": "reorder_personal_ai_keys"
  }
}

Input Schema

NameRequiredDescriptionDefault
key_idsYesEvery one of your key ids, in the order Ankra should try them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing who is refused (service account, AI agent, subworker, autonomous run) and the completeness rule that key_ids must list every key exactly once — real invocation constraints an agent cannot get from the schema. One tension worth noting: describing a full-set assignment suggests repeated identical calls produce identical state, which sits awkwardly with idempotentHint=false, though the description never explicitly claims idempotency.

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 the operation and effect ('first tried first'), then prerequisite, then eligibility. The refusal enumeration is dense but every clause is operationally relevant; slight tightening of the eligibility list would help but nothing is filler.

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

Completeness5/5

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

For a single-parameter, non-destructive mutation with no output schema, the description covers the effect, ordering semantics, input completeness rule, source of ids, identity restrictions and per-context refusal cases. Nothing an agent needs to call it correctly is missing.

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% and the schema already states 'in the order Ankra should try them', so the baseline is 3. The description adds modest value with the 'exactly once / every key on your profile' completeness constraint, which prohibits partial lists, but repeats the ordering meaning the schema already carries.

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 and resource ('Set the order Ankra tries your own AI keys in') and immediately disambiguates from its siblings by noting the ids come from list_personal_ai_keys, while the 'personal' scope separates it from org-level key tools. An agent can identify this as the ordering tool without opening the schema.

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 an explicit prerequisite ('The ids come from list_personal_ai_keys') and a detailed eligibility boundary: only the person themselves, in their own chat or over MCP with their own token, refused for service accounts, AI agents, subworkers and dispatched/autonomous runs. It does not explicitly contrast against rename_personal_ai_key, test_personal_ai_key or delete_personal_ai_key, so when-to-use versus those siblings is left implicit.

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.