Skip to main content
Glama
conorluddy

XC-MCP: XCode CLI wrapper

by conorluddy

Set Cache Configuration

cache-set-config
Idempotent

Configure cache retention times to balance performance and freshness for simulator, project, and response caches. Set duration in ms, minutes, or hours.

Instructions

cache-set-config

⚙️ Configure cache retention times to optimize for your workflow - Fine-tune cache policies.

Fine-tune cache retention policies for simulator, project, and response caches. Allows you to balance performance (longer cache retention) against freshness (shorter retention). Default is 1 hour for most caches. Supports specifying duration in milliseconds, minutes, or hours for convenience.

Advantages

• Optimize for development workflows (longer cache = faster repeated operations) • Optimize for CI/CD environments (shorter cache = fresher data, less stale state) • Reduce memory usage by lowering retention times for infrequently-accessed caches • Extend retention for slow-changing projects to maximize performance gains

Parameters

Required

  • cacheType (string): Which cache to configure - "simulator", "project", "response", or "all"

Optional

  • maxAgeMs (number): Cache retention in milliseconds

  • maxAgeMinutes (number): Cache retention in minutes (alternative to maxAgeMs)

  • maxAgeHours (number): Cache retention in hours (alternative to maxAgeMs)

Note: Specify exactly one of maxAgeMs, maxAgeMinutes, or maxAgeHours. Minimum 1000ms (1 second).

Returns

  • Tool execution results with configuration update confirmation

  • Results per cache type with human-readable durations

  • Timestamp of configuration change

  • cache-get-config: Get current cache configuration

  • cache-get-stats: Monitor cache performance

  • cache-clear: Clear cached data

Notes

  • Tool is auto-registered with MCP server

  • Changes apply immediately

  • Response cache is currently fixed at 30 minutes

  • Use with cache-get-stats to verify effectiveness

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxAgeMsNo
cacheTypeYes
maxAgeHoursNo
maxAgeMinutesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.1.0
  2. Removedv1.1.0
  3. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=true. The description adds behavioral context: 'Changes apply immediately', 'Response cache is currently fixed at 30 minutes', and the constraint 'Specify exactly one of maxAgeMs, maxAgeMinutes, or maxAgeHours'. This goes beyond the annotations and helps the agent understand side effects and constraints. No contradiction with annotations.

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 with sections (Advantages, Parameters, Returns, Related Tools, Notes) and front-loaded with a clear summary. Some marketing language like '⚙️ Configure cache retention times to optimize for your workflow' is slightly fluffy, but the core content is relevant and organized, making it easy to scan.

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?

Given there is no output schema, the description lists expected returns ('Tool execution results', 'Results per cache type with human-readable durations', 'Timestamp of configuration change'). It also covers constraints (response cache fixed, minimum duration) and relationships. Everything an agent needs to configure cache retention correctly is present.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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 fully explain parameters. It does: cacheType (with enum values), maxAgeMs, maxAgeMinutes, maxAgeHours, and the note about exactly one and minimum 1000ms. This completely compensates for the lack of schema descriptions, making parameter usage unambiguous.

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's purpose: 'Configure cache retention times' and 'Fine-tune cache retention policies for simulator, project, and response caches.' It is specific about the verb (configure/fine-tune) and the resource (cache retention). It distinguishes itself from siblings via the Related Tools section (cache-get-config, cache-get-stats, cache-clear), making clear this is the setter.

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?

Provides guidance on when to use: 'Optimize for development workflows (longer cache = faster repeated operations)' and 'Optimize for CI/CD environments (shorter cache = fresher data)'. It also lists Related Tools like cache-get-config and cache-get-stats, giving clear alternatives. However, it does not explicitly state when not to use it or contrast with each sibling, so it's not a full 5.

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