Skip to main content
Glama

clerk.list_m2m_tokens

List M2M tokens for a machine in a connected Clerk instance.

Sensitive — returns token metadata for active machine credentials.

Call clerk.get_connected_accounts first. Pass clerk_instance_id to target a specific connection, or omit it to use the default account.

Returns M2M token summaries plus total_count. JWT-format tokens are not listed.

Cost = 5 tokens.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of results to return (1–500).
offsetNoNumber of results to skip before returning.
expiredNoInclude expired tokens (default false).
revokedNoInclude revoked tokens (default false).
subjectYesMachine id (mch_...) whose tokens to list.
clerk_instance_idNoClerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
m2m_tokensNoM2M tokens for the requested page.
total_countNoTotal number of matching M2M tokens.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are provided, so the description carries the burden. It discloses that the operation is 'Sensitive', returns token metadata for active credentials, notes cost, and states that JWT-format tokens are not listed. This adds meaningful safety and scope context beyond the schema, though it does not mention read-only nature or behavior around expired/revoked defaults (covered by schema).

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?

The description is compact and front-loaded, starting with the purpose. Every sentence contributes: purpose, sensitivity warning, prerequisite, instance targeting, return summary, and cost. No filler or repetition.

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?

Given the high schema coverage (100%) and presence of an output schema, the description only needs to cover the operation flow and key caveats. It successfully includes prerequisite (connected accounts), instance selection, a sensitivity note, cost, and a return-value summary. No important context appears missing for an agent to select and invoke the tool correctly.

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%, with all six parameters described in the input schema. The description adds only minimal value by reinforcing clerk_instance_id usage ('omit to use the default account') and noting JWT tokens are not returned, but it does not add substantive detail beyond what the schema already provides.

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?

The description opens with 'List M2M tokens for a machine in a connected Clerk instance,' which is a specific verb+resource+scope. It clearly differentiates from sibling list tools like list_machines or list_users by targeting M2M tokens for a machine and explicitly notes JWT-format tokens are excluded.

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 provides explicit usage context by instructing to call clerk.get_connected_accounts first and explaining how to use clerk_instance_id for targeting a connection or omit it for default. It also mentions a limitation (JWT-format tokens not listed) but does not explicitly name alternatives or state when not to use the tool, so it falls short of full guidance.

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.