Skip to main content
Glama
workspace-json

@workspacejson/codex-mcp

Official

List co-change partners for a file

workspace_get_cochange_partners
Read-onlyIdempotent

Identify files that historically change together with a given file to determine which related files may need updating after an edit.

Instructions

Return the files that historically change together with the given file, per workspace.json.

Use after editing a file to check whether related files also need updating.

Args:

  • path (string): repo-relative or absolute file path.

Returns JSON: { "path": string, "partners": string[], "count": number } Returns an empty partners array when none are recorded (a real answer, not an error).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesThe file path to look up. Absolute or repo-relative both work (matched on suffix). Example: 'src/db/client.ts'.
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, but the description adds valuable context: returns empty array when no partners (not an error) and notes it operates per workspace.json. This goes beyond annotation info.

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?

Three sentences plus structured Args/Returns. No wasted words. Efficient and well-structured.

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

Completeness5/5

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

For a simple tool with one parameter and no output schema, the description captures purpose, usage, return format, and edge case (empty array). No gaps.

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 100% with description of path parameter. The description adds 'repo-relative or absolute' and 'matched on suffix' with an example, providing slight additional meaning beyond the schema's description.

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 clearly states the tool returns files that historically change together with the given file. The verb 'return' and resource 'co-change partners' are specific, and the tool is distinct from siblings (workspace_assess_change, workspace_get_file_context, workspace_list_fragile_files).

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?

Explicitly says 'Use after editing a file to check whether related files also need updating.' Provides clear context for when to use, though lacks explicit when-not or alternative tools.

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/workspace-json/codex-mcp'

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