Skip to main content
Glama

connect_provider

Store a pasted API key for a specific client and provider, returning only the connected provider name. Use when browser login isn't available or a REST API key is needed alongside a session.

Instructions

Store a pasted API key for one client and one provider.

Returns which provider was connected, never the credential itself.

Use this only for providers with no browser login, or when a REST API key is needed alongside a session: the mail tools call REST APIs and a browser session is a different credential. munim connect at the terminal does the browser login.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clientYesThe client to act on, by the name you registered them under. A write resolves this one client's credentials and no other.
providerYesThe provider to use, for example cloudflare, vercel or resend. Only what this client is actually connected to is reachable.
credentialYesThe API key or token, pasted. It is stored and never returned by any tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.5.0
    • addedInput schema / properties / client / description
      Added value: +"The client to act on, by the name you registered them under. A write resolves this one client's credentials and no other."
    • addedInput schema / properties / credential / description
      Added value: +"The API key or token, pasted. It is stored and never returned by any tool."
    • addedInput schema / properties / provider / description
      Added value: +"The provider to use, for example cloudflare, vercel or resend. Only what this client is actually connected to is reachable."
  2. First observedv0.4.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it states the credential is stored, is never returned by any tool, and that only the connected provider is returned. It also explains the REST-vs-browser-session distinction, making the side effects and security posture clear.

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: the core action appears first, followed by return behavior, then usage conditions. Every sentence contributes either selection guidance, safety information, or behavioral context, with no filler.

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 there is no output schema, the description usefully states what the tool returns and what it never returns. It also covers when to use it and how it relates to browser login and mail tools. Minor gaps like overwrite behavior or failure modes are not critical for an agent deciding whether to invoke this tool.

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 description coverage is 100%, so the baseline is 3. The description reinforces the parameters by calling the credential a 'pasted API key' and emphasizing 'one client and one provider,' but it does not add substantial semantic detail beyond the schema's already thorough parameter descriptions.

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 a specific verb and resource: 'Store a pasted API key for one client and one provider.' It clearly distinguishes the tool's purpose from the sibling tools, which are about calling provider APIs, planning setups, or auditing clients, by framing this as a credential-storage operation.

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 gives explicit when-to-use guidance: 'Use this only for providers with no browser login, or when a REST API key is needed alongside a session.' It also names the alternative path, `munim connect` at the terminal, for browser login, which helps an agent choose correctly.

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