Skip to main content
Glama

onboard_agent

Write or update workflow rules in AI agent context files for a project. Requires user consent; creates starter scaffolds for supported agents.

Instructions

Write or update the kontexta workflow rules block in a project's agent context file(s). Idempotent — uses fenced markers + version to skip no-op writes.

MANDATORY: This tool modifies project configuration files. You MUST seek explicit user consent before calling this tool. Set 'confirm: true' only after the user has agreed.

PARAMETERS:

  • project_id: number, required.

  • confirm: boolean, required. Must be true to proceed.

  • files: string[], optional. Paths relative to project root. For update mode, defaults to recommendation.target_files. Ignored when files is empty AND target_agent is provided (create mode).

  • target_agent: enum claude-code | codex | gemini | cursor | continue | aider | cline | copilot | generic. Required when files is empty AND no context file currently exists. Picks the canonical filename and the starter scaffold.

RETURNS: { written: [{ path, action: created|updated|skipped, version }], skipped: [{ path, reason }] }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesNoProject-relative paths to update; defaults to detected context files
confirmYesMANDATORY: Set to true only after obtaining explicit user consent to modify context files.
project_idYesProject ID returned from register_project
target_agentNoRequired when files is empty AND no context file exists. Picks the canonical filename + scaffold.
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses idempotency (fenced markers + version skip no-op writes), file modification (project configuration files), the mandatory user consent requirement, and the return structure. It does not mention if existing rules are overwritten, but the idempotency and versioning hint at safe behavior. This is good coverage for a mutating tool.

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?

The description is well-structured: a one-sentence purpose, a mandatory consent warning, a concise parameter list with mode behavior, and a returns section. It is slightly longer than necessary due to repeating some parameter details that are also in the schema, but every section earns its place with the consent warning and mode logic being critical.

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?

For a tool with 4 parameters, no annotations, and no output schema, the description covers all essential context: idempotency, consent, create/update mode behavior, parameter interactions, and the exact return format. It lacks error handling details (e.g., what happens if no context file exists and target_agent is omitted), but the description is sufficient for an agent to invoke the tool correctly in most scenarios.

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 coverage is 100%, but the description adds context beyond the schema: it clarifies that files defaults to recommendation.target_files in update mode, that files is ignored when target_agent is provided (create mode), and specifies the exact condition for target_agent requirement. This adds practical meaning to the parameters, going beyond the schema descriptions.

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 starts with 'Write or update the kontexta workflow rules block in a project's agent context file(s)' – a specific verb+resource that clearly distinguishes from generic file tools like update_file. It names the exact domain (kontexta workflow rules) and the target (agent context files), leaving no ambiguity about what the tool does.

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?

The description provides clear context on when to use the tool: it explains create vs update modes, when files is ignored, when target_agent is required, and the mandatory consent step. However, it does not explicitly compare to sibling tools like update_file or create_file, so an agent may not know why to choose this over those alternatives. The guidance is strong but not fully explicit about alternatives.

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/safiyu/kontexta'

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