Skip to main content
Glama

Connect Mercury

connect_mercury

Connects the org to Mercury from a read-only, scoped API token the user created in their Mercury settings (Mercury uses a token, not OAuth — there is no redirect). The token is validated against Mercury's accounts endpoint and stored ONLY if it works; an invalid token stores nothing and returns an error. This grants READ access only — balances and transactions — it cannot move money. The token is sensitive: it is vault-encrypted at rest and never returned, logged, or echoed. Optionally include the per-account webhook signing secret (from where the webhook was created in Mercury) to enable live transaction events.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
org_idNoOptional. Defaults to the organisation the authenticated API key is bound to, so you normally omit it and never need to ask the user for their organisation UUID. If provided, it must match the key’s org or the request is rejected.0e91146d-511c-469f-bdee-5c867b26ae0d
actor_idNoOptional. Defaults to the organisation entity (correct for an org-scoped key). If provided, it must be an entity belonging to this organisation — arbitrary UUIDs are rejected, so the audit trail cannot be attributed to someone else.
api_tokenYesThe read-only Mercury API token to validate and store. Sensitive — never logged.
webhook_secretNoOptional per-account webhook signing secret to enable live event verification.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
connectedYes
account_idsYes
business_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint: false, so the description carries the burden. It fully discloses that the token is validated against Mercury's accounts endpoint, stored only if valid, that access is READ-only (balances/transactions), that the token is sensitive and vault-encrypted, and never returned/logged/echoed. This goes far beyond the annotation and gives the agent a precise safety profile.

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 dense but every sentence earns its place: purpose, authentication method, validation flow, access scope, security, and optional parameter. It is front-loaded with the core function and then layers details, making it easy for an agent to parse quickly.

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 security-sensitive setup tool with four parameters, the description covers all operational aspects: validation, storage, access limits, token handling, and optional webhook. An output schema exists (indicated), so return values are presumably documented elsewhere. Nothing an agent needs to call this tool correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, and the description adds meaning beyond each property's schema description. It explains org_id defaults to the key's org and never needs to be asked, actor_id defaults to the org entity and arbitrary UUIDs are rejected, api_token is sensitive and never logged, and webhook_secret enables live events. This enriches the schema without redundancy.

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 states a specific action (connects org to Mercury) with a specific mechanism (API token, not OAuth), and clearly distinguishes from siblings like connect_meow and disconnect_mercury by naming the integration target. It leaves no ambiguity about what the tool does.

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?

It explicitly explains the authentication method (token, no redirect), the validation-and-store flow, and the optional webhook secret use case. It also notes the token is read-only, which implicitly tells the agent this is for setup, not for moving money. The distinction from connect_meow (another integration) is clear via context, and disconnect_mercury is the obvious inverse.

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.

Resources