Skip to main content
Glama

Connect project to hub

connect_project
Read-onlyIdempotent

Link the current project (repository) to a Beringio hub. Returns a section for the repository's AGENTS.md file (read by Cursor, Codex, Claude Code and other AI coding tools) that tells AI tools working in this project to check this hub's decisions and to offer saving new ones there. Use this when the user asks to connect a project or repository to a hub. The tool only returns text and changes nothing. Show the section to the user; if they agree, add it to AGENTS.md at the repository root — replacing an existing section between the beringio:start and beringio:end markers (or the older deeplomats:start and deeplomats:end), otherwise appending it at the end (creating the file if there is none). Don't commit unless asked.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "connect_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
hubNohub key or name (list_hubs); may be omitted if the user has one hub or one team hub
langNosection language: ru or en — whatever the repository uses; default en

Output Schema

NameRequiredDescriptionDefault
fileYeswhere to write it — path from the repository root
noteYes
textYesthe whole section, with start and end markers
end_markerYes
start_markerYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so 'the tool only returns text and changes nothing' largely restates them. The genuinely additive behavioral content is about the downstream manual edit (marker-based replacement vs. append, file creation, no auto-commit), which is valuable context rather than new disclosure of the tool's own side effects.

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?

Front-loads purpose, then the return value, then the trigger, then the procedural steps — a sensible order with no filler sentences. It runs long, and the parenthetical tool list (Cursor, Codex, Claude Code) and duplicated marker pairs add minor bulk, but each clause carries operating instructions the agent needs.

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?

The tool is low-complexity with two optional, fully documented parameters and an output schema, yet the description still covers what is returned and exactly how to handle it. Nothing an agent needs in order to call and correctly act on this tool is missing.

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 description coverage is 100%, so hub and lang are already documented including the 'may be omitted if the user has one hub' rule and the ru/en options. The description adds no syntax or format detail beyond referring to 'this hub' and the repository's existing language convention, so baseline 3 applies.

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?

States a specific verb and resource ('Link the current project (repository) to a Beringio hub') and immediately clarifies what is actually produced: an AGENTS.md section rather than a live connection. That framing distinguishes it from hub-management siblings like create_hub or update_hub without ambiguity.

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

Usage Guidelines5/5

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

Gives an explicit trigger ('Use this when the user asks to connect a project or repository to a hub') and then a complete post-call protocol: show the section, get user agreement, replace content between beringio:start/end (or legacy deeplomats markers), otherwise append, create the file if absent, and don't commit unless asked. This is unusually actionable guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources