Skip to main content
Glama

Get Paybond Principal

paybond_get_principal
Read-only

Retrieve the tenant-bound service-account principal and roles from the gateway principal endpoint. Call this before other tenant-scoped tools to confirm tenant identity.

Instructions

Use this when you need to confirm which tenant-bound service-account principal the configured PAYBOND_API_KEY authenticates as (tenant_id, subject, and roles). Call early as a prerequisite before Harbor escrow, Signal reads, or other tenant-scoped tools when tenant identity is unknown. Not required before every later call once tenant_id is already known from a prior principal response or host config. Do not use this when you need Harbor intent escrow detail; use paybond_get_intent instead when you have an intent_id. Do not use this for A2A discovery; use paybond_get_a2a_agent_card instead. Makes one read-only external GET to the gateway principal endpoint; idempotent identity lookup with no side effects (no mutations, spend reservations, escrow changes, or ledger writes); auth or gateway failures surface as tool errors.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
rolesNoRBAC roles granted to this principal for the authenticated tenant (example: ["operator"]).
subjectNoService-account subject identifier echoed by the gateway for the authenticated API key (example: service-account-1).
tenant_idNoTenant bound to the configured Paybond API key.
Behavior5/5

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

Description states one read-only GET, idempotent, no side effects (no mutations, spend reservations, escrow changes, ledger writes), and that auth/gateway failures surface as errors. Annotations already provide readOnlyHint=true and openWorldHint=false, but description adds concrete behavior beyond annotations.

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?

Single efficient paragraph, front-loaded with purpose, then usage, exclusions, and behavior. Every sentence is meaningful with no redundancy.

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?

Given zero parameters, good annotations, and output schema presence, description covers purpose, usage, behavior, and return fields. Could mention that no credentials are passed (already configured), but overall complete.

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?

Input schema has zero parameters; baseline is 4. Description adds value by listing returned fields (tenant_id, subject, roles), though output schema exists but is not shown. No parameter details needed.

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 clearly states the tool confirms tenant-bound service-account principal (tenant_id, subject, roles). It distinguishes from siblings like paybond_get_intent and paybond_get_a2a_agent_card.

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

Usage Guidelines5/5

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

Explicitly says when to call early (prerequisite before Harbor escrow, Signal reads when tenant unknown) and when not needed (once tenant_id known). Also lists exclusions: not for intent detail (use paybond_get_intent) or A2A discovery (use paybond_get_a2a_agent_card).

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nonameuserd/paybond-kit-python'

If you have feedback or need assistance with the MCP directory API, please join our Discord server