Skip to main content
Glama

opencode_project

Retrieve current or all project details, available agents and slash commands, plus Git/VCS branch and status to select agents or commands for OpenCode sessions.

Instructions

Get project info and available agents/commands. Actions: current (current project), list (all projects), agents (list available agents — use to know what agent names to pass to prompt/shell), commands (list available slash commands for session command action), vcs (git/VCS info — branch, status, etc.)

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_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden. 'Get ... info' implies a read-only lookup and per-action hints ('branch, status, etc.') indicate what comes back, but it never states explicitly that no state is mutated, that no auth/project initialization is required, or what happens on failure. Adequate inference, not disclosure.

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 front-loaded sentence with the purpose first and the action list after; each parenthetical earns its place by defining an enum value. Slightly dense with nested parentheses, but no filler or repetition.

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 five-action read tool with no output schema and no annotations, the description covers what each action returns at a high level, which is the essential information. It omits the read-only guarantee, any pagination or size caveats for 'list', and failure modes, leaving an agent to infer safety.

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 0%, so the enum values are bare strings, and the description is what gives each one meaning ('current' = current project, 'list' = all projects, 'vcs' = git branch and status). That is genuine added meaning beyond the schema. It stops short of 5 because it doesn't clarify the relationship between 'list' and 'current' or whether 'current' errors when no project is open.

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 opens with a concrete verb+resource ('Get project info and available agents/commands') and enumerates the five supported actions with short glosses, so an agent can tell this is the project/agent/command introspection tool rather than a session or config tool. It falls short of 5 only because it bundles several distinct resources (VCS state, agents, commands) under one entry point without saying why they are grouped.

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?

Two actions carry real routing guidance: 'agents' is scoped to knowing what agent names to pass to prompt/shell, and 'commands' is tied to the session command action. The other three actions (current, list, vcs) get no when-to-use context, and there is no guidance on which sibling tool to prefer when the agent wants session or provider data.

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