Skip to main content
Glama

Configure API credentials

setup_credentials
Idempotent

Stores API credentials in a user config file (0600) for the stock screening server. Prompts for missing keys, saves provided values, or deletes a credential with an empty string.

Instructions

Store API credentials for this server. Call with no arguments to prompt the user for them. Call with arguments to save values the user has already given you. Values are written to a 0600 file in the user config directory, never into a project. Pass an empty string to remove a credential.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
FMP_API_KEYNo
FRED_API_KEYNo
EODHD_API_KEYNoThe only non-US quote coverage here. Free tier is 20 calls/day. https://eodhd.com/register
EDINET_API_KEYNoJapanese filings (FSA EDINET). Free and instant, but the signup has a trap: get the key at https://api.edinet-fsa.go.jp/WEEE0090.aspx — the account page renders blank because it relies on a popup. See `setup_status` for the full walkthrough.
SEC_USER_AGENTNoRequired. A real name and email, e.g. "Jane Doe jane@example.com". EDGAR returns 403 without one and may block the IP. No registration needed.
TIINGO_API_KEYNoRecommended price source. Free key at https://www.tiingo.com/account/api/token
FINNHUB_API_KEYNoQuotes. The most generous free tier here — 60 calls/minute. Free key at https://finnhub.io/register
POLYGON_API_KEYNo
ALPACA_API_KEY_IDNoQuotes with the most free headroom here (200/min). Free paper-trading account, no card: https://alpaca.markets/
TWELVEDATA_API_KEYNo
ALPHAVANTAGE_API_KEYNo
ALPACA_API_SECRET_KEYNo
ETRADE_PROD_CONSUMER_KEYNoReads your real holdings, balances and transactions. Read-only — this server never places an order. Obtain at https://developer.etrade.com/getting-started; `setup_status` spells out the three-form process.
ETRADE_PROD_CONSUMER_SECRETNo
ETRADE_SANDBOX_CONSUMER_KEYNoSynthetic data, for proving the connection works. Instant and self-service at https://us.etrade.com/etx/ris/apikey
ETRADE_SANDBOX_CONSUMER_SECRETNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations declare a non-read-only, idempotent, non-destructive write; the description adds real context beyond that: values land in a 0600 file in the user config directory and never in a project, and empty strings delete a credential. It does not explain partial-update behavior (whether supplying one key preserves the other fifteen) or whether values are validated, which matters for a 16-field secret store.

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?

Four short sentences, zero padding, ordered from purpose to invocation modes to storage location to deletion. The most decision-relevant information (which mode to call) is front-loaded.

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?

For a 16-parameter, no-output-schema configuration writer, the description covers invocation modes, storage location, permissions and removal. It leaves the save semantics ambiguous (merge vs. overwrite of untouched keys) and never points at setup_status, which the schema itself references for signup walkthroughs.

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?

Schema description coverage is 50%, so the schema carries much of the burden via titles and per-key descriptions. The description contributes a global per-parameter rule the schema never states — an empty string removes that credential — which is meaningful semantics above the baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Store API credentials for this server') and enumerates the three distinct invocation modes (no args = prompt, args = save given values, empty string = remove). It does not name or differentiate itself from the sibling setup_status, which is the one tool an agent could plausibly confuse it with, so it stops short of full sibling differentiation.

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?

Usage is explicit for each mode: call with no arguments to prompt the user, call with arguments when the user has already supplied values, pass an empty string to delete. No alternatives or exclusions are named relative to setup_status/setup_status-style tools, so it gives clear context but no comparative routing.

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