Skip to main content
Glama
thehesiod

io.github.thehesiod/costco

by thehesiod

save_refresh_token

Store an OAuth2 refresh token from Costco's Azure AD B2C to add a new account or update an existing one. The token remains valid for 90 days.

Instructions

Save a refresh token obtained from a browser login session.

Use this to add a new account or update an existing one. The refresh token is valid for 90 days.

Args: refresh_token: The OAuth2 refresh token from Costco's Azure AD B2C account: Account name (e.g. "personal", "spouse"). Creates the account if new. If empty, uses default account.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refresh_tokenYes
accountNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations exist, so the description must disclose behavioral traits. It mentions token validity of 90 days and that creating an account is possible. However, it does not discuss side effects, error behavior, or whether it's destructive/reversible.

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 concise with a clear front-loaded purpose statement. Every sentence adds value, covering purpose, usage, and parameter details without 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 that an output schema exists, the description does not need to cover return values. It adequately explains purpose, usage, parameters, and token lifetime. Minor omission: no mention of error cases or prerequisites, but overall sufficient for a simple save operation.

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?

With 0% schema coverage, the description fully compensates by explaining the source of the refresh token (Costco's Azure AD B2C) and the account parameter with examples and behavior when empty. This adds significant meaning beyond the raw schema.

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?

Clearly states it saves a refresh token from a browser login session, and explicitly says to add a new account or update an existing one. This distinguishes it from siblings like check_auth_status or receipt-related tools.

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

Usage Guidelines3/5

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

Provides context for use (adding or updating accounts), but does not explicitly state when not to use or mention alternatives like check_auth_status. Usage is implied rather than clearly bounded.

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/thehesiod/costco-mcp'

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