Skip to main content
Glama

opencode_provider

List AI providers with model and connection status, retrieve authentication methods, and start or complete OAuth authorization flows.

Instructions

Manage AI providers. Actions: list (all providers with models and connection status), auth (get auth methods per provider), authorize (start OAuth flow), callback (complete OAuth flow with authorization code).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "opencode_provider"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoProvider ID (required for authorize/callback)
codeNoAuthorization code (for callback)
actionYes
methodNoAuth method index (for authorize/callback)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does usefully disclose return content for 'list' (models and connection status) and the two-step OAuth nature of authorize/callback. It says nothing about whether credentials are persisted, what authorize returns (e.g., a URL or instructions), or side effects on provider configuration.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single compact sentence with the action vocabulary front-loaded and each action annotated in parentheses; no filler. Slightly denser formatting (inline list vs. bullets) costs a bit of scanability but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a multi-action, four-parameter tool with no annotations and no output schema, the description covers each action's intent but leaves the agent without sequencing rules or expected results for authorize/auth. Adequate as a minimal map, incomplete for reliable multi-step OAuth invocation.

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 coverage is 75%, so the schema already documents id, code, and method with their action applicability. The description's only added linkage is 'id required for authorize/callback', which largely restates the schema, and it omits any mention of the 'method' index parameter.

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?

The description names the resource (AI providers) and enumerates the four concrete actions with a parenthetical explaining each: list returns providers with models and connection status, auth returns auth methods, authorize starts OAuth, callback completes it. That is specific verb+resource detail. It does not, however, distinguish this tool from the sibling opencode_auth, which plausibly covers overlapping authentication concerns.

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?

Usage is implied by the action list — an agent can infer that 'auth' precedes 'authorize' and 'authorize' precedes 'callback' — and the id/code fields hint at the flow order. But no explicit sequencing, prerequisites, or exclusions are stated, and there is no guidance on when to prefer this over opencode_auth.

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