Skip to main content
Glama
conorluddy

XC-MCP: XCode CLI wrapper

by conorluddy

persistence

Enable, disable, or check cache persistence status to retain data across sessions, speeding up builds in long-running projects and CI environments.

Instructions

persistence

Unified cache persistence management - enable, disable, check status.

Overview

Single tool for persistence configuration. Routes to specialized handlers while maintaining clean operation semantics.

Operations

enable

Enable cache persistence to disk.

Parameters:

  • cacheDir (string, optional): Custom cache directory path

Example:

await persistenceTool({
  operation: 'enable',
  cacheDir: '/path/to/cache'
})

Notes: Persists cache data across sessions. Useful for long-running projects or CI environments.


disable

Disable cache persistence.

Parameters:

  • clearData (boolean, optional): Clear existing persistent data on disable

Example:

await persistenceTool({
  operation: 'disable',
  clearData: true
})

status

Check persistence status.

Parameters:

  • includeStorageInfo (boolean, optional): Include storage usage details

Example:

await persistenceTool({
  operation: 'status',
  includeStorageInfo: true
})

Returns: Persistence status (enabled/disabled), cache directory path, and optional storage information.


When to Use

Enable persistence:

  • Long-running projects that benefit from cross-session cache

  • CI/CD environments where cache survives across builds

  • Development workflows where build history is valuable

Disable persistence:

  • Temporary debugging sessions

  • Testing with clean cache state

  • Clearing sensitive cached information

  • cache: Cache management and configuration

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
operationYes
cacheDirNo
clearDataNo
includeStorageInfoNo
Behavior3/5

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

With no annotations, the description carries the full burden. It details each operation's behavior and parameters, including that enable persists across sessions and disable can clear data. However, it lacks edge-case details like error handling, permissions, or idempotency, leaving gaps in transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with sections but is somewhat verbose, repeating parameter details in both parameter lists and examples. While organized and front-loaded, it could be more concise without losing essential information.

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?

Given no output schema and no annotations, the description covers operations, parameters, examples, and usage guidance. It references a related tool. However, it misses edge cases like error handling, permission requirements, or concurrency behavior, leaving some gaps for a management tool of this complexity.

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 description must compensate. It adds meaning to all four parameters: cacheDir (custom directory), clearData (clear on disable), includeStorageInfo (storage usage details), and operation (enum values explained). Examples further clarify usage.

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 it is for cache persistence management with three specific operations: enable, disable, and status. It uses precise verbs and explicitly distinguishes itself from the related sibling tool 'cache' by noting it handles persistence configuration.

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 'When to Use' section provides explicit scenarios for enabling and disabling persistence, such as long-running projects and CI/CD. However, it does not explicitly state when not to use this tool or provide direct alternatives to the sibling tool 'cache', though it is referenced.

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/conorluddy/xc-mcp'

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