Squid · Capability

Squid Cache Manager API — Memory

Squid Cache Manager API — Memory. 1 operations. Lead operation: Get Memory Usage. Self-contained Naftiko capability covering one Squid business surface.

Run with Naftiko SquidMemory

What You Can Do

GET
Getmemoryusage — Get Memory Usage
/v1/mem

MCP Tools

get-memory-usage

Get Memory Usage

read-only idempotent

Capability Spec

cache-manager-memory.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Squid Cache Manager API — Memory
  description: 'Squid Cache Manager API — Memory. 1 operations. Lead operation: Get Memory Usage. Self-contained Naftiko capability
    covering one Squid business surface.'
  tags:
  - Squid
  - Memory
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SQUID_API_KEY: SQUID_API_KEY
capability:
  consumes:
  - type: http
    namespace: cache-manager-memory
    baseUri: http://localhost:3128/squid-internal-mgr
    description: Squid Cache Manager API — Memory business capability. Self-contained, no shared references.
    resources:
    - name: mem
      path: /mem
      operations:
      - name: getmemoryusage
        method: GET
        description: Get Memory Usage
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: basic
      username: '{{env.SQUID_USER}}'
      password: '{{env.SQUID_PASS}}'
  exposes:
  - type: rest
    namespace: cache-manager-memory-rest
    port: 8080
    description: REST adapter for Squid Cache Manager API — Memory. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/mem
      name: mem
      description: REST surface for mem.
      operations:
      - method: GET
        name: getmemoryusage
        description: Get Memory Usage
        call: cache-manager-memory.getmemoryusage
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cache-manager-memory-mcp
    port: 9090
    transport: http
    description: MCP adapter for Squid Cache Manager API — Memory. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-memory-usage
      description: Get Memory Usage
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cache-manager-memory.getmemoryusage
      outputParameters:
      - type: object
        mapping: $.