Skip to main content
Glama

faf_sync

Idempotent

Syncs project.faf into existing AI context files or CLAUDE.md by default, placing a structured block at the top without overwriting your text. Unsafe files remain unchanged and are named.

Instructions

Sync project.faf into your AI context files: the ones that exist (CLAUDE.md, .cursorrules, .windsurfrules, .clinerules), or CLAUDE.md when there are none (target: all writes every one). Non-destructive: puts a structured .faf block at the top and keeps your own text; a file faf cannot safely write (not UTF-8, a link out of the project) is left unchanged and named in the reply. One way: never writes project.faf.

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": "faf_sync"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetNoauto (default): the context files that already exist, or CLAUDE.md when there are none; a single file; or all

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.2.4
    • addedInput schema / properties / target
      Added value: +{
      +  "description": "auto (default): the context files that already exist, or CLAUDE.md when there are none; a single file; or all",
      +  "enum": [
      +    "auto",
      +    ".clinerules",
      +    ".cursorrules",
      +    ".windsurfrules",
      +    "CLAUDE.md",
      +    "all"
      +  ],
      +  "type": "string"
      +}
  2. Addedv1.4.1
  3. Removedv1.4.0
  4. Addedv1.3.1
  5. Removedv1.3.0
  6. First observedv1.2.0

TDQS

A3.9/5.0
Behavior5/5

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

Goes well beyond the annotations by defining what 'non-destructive' concretely means: a structured .faf block is prepended while user text is preserved, and files that cannot be safely written (non-UTF-8, symlinks out of the project) are skipped and reported by name. The unidirectionality clause ('never writes project.faf') is exactly the kind of behavioral constraint annotations cannot express.

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 target-behavior and the safety guarantee are front-loaded, and nearly every clause carries information an agent needs. The nested parentheticals and mid-sentence 'target: all writes every one' aside make it slightly denser than necessary, but nothing is filler.

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 one-parameter mutating tool with no output schema, the description covers the important ground: which files get touched, what content is written, what is skipped and why, and that failures are surfaced in the reply. It could note where project.faf is expected to live or what the .faf block contains, but the gaps are minor.

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% and the enum's per-value meaning is already documented in the schema. The description's parenthetical ('target: all writes every one') merely restates the enum semantics, so it adds little beyond structured data — baseline 3 applies.

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?

States a specific verb and direction ('Sync project.faf into your AI context files') and enumerates the target files, so the resource and direction are unambiguous. It stops short of naming a sibling like refresh_faf or faf_init, though 'One way: never writes project.faf' does implicitly distinguish it from tools that write the .faf itself.

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 rather than stated: the agent can infer 'use this to propagate project.faf into editor/agent rule files,' and the default 'auto' behavior is explained. There is no explicit guidance on when to prefer this over refresh_faf, refresh_fafm, or faf_init, which sit in the same family.

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