freshworks · Capability

Freshworks Freshservice API — Agents

Freshworks Freshservice API — Agents. 2 operations. Lead operation: List all agents. Self-contained Naftiko capability covering one Freshworks business surface.

Run with Naftiko FreshworksAgents

What You Can Do

GET
Listagents — List all agents
/v1/agents
GET
Getagent — View an agent
/v1/agents/{agent-id}

MCP Tools

list-all-agents

List all agents

read-only idempotent
view-agent

View an agent

read-only idempotent

Capability Spec

freshservice-agents.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Freshworks Freshservice API — Agents
  description: 'Freshworks Freshservice API — Agents. 2 operations. Lead operation: List all agents. Self-contained Naftiko
    capability covering one Freshworks business surface.'
  tags:
  - Freshworks
  - Agents
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FRESHWORKS_API_KEY: FRESHWORKS_API_KEY
capability:
  consumes:
  - type: http
    namespace: freshservice-agents
    baseUri: https://{domain}.freshservice.com/api/v2
    description: Freshworks Freshservice API — Agents business capability. Self-contained, no shared references.
    resources:
    - name: agents
      path: /agents
      operations:
      - name: listagents
        method: GET
        description: List all agents
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: email
          in: query
          type: string
          description: Filter agents by email address.
        - name: state
          in: query
          type: string
          description: Filter agents by active state.
    - name: agents-agent_id
      path: /agents/{agent_id}
      operations:
      - name: getagent
        method: GET
        description: View an agent
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: basic
      username: '{{env.FRESHWORKS_USER}}'
      password: '{{env.FRESHWORKS_PASS}}'
  exposes:
  - type: rest
    namespace: freshservice-agents-rest
    port: 8080
    description: REST adapter for Freshworks Freshservice API — Agents. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/agents
      name: agents
      description: REST surface for agents.
      operations:
      - method: GET
        name: listagents
        description: List all agents
        call: freshservice-agents.listagents
        with:
          email: rest.email
          state: rest.state
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/agents/{agent-id}
      name: agents-agent-id
      description: REST surface for agents-agent_id.
      operations:
      - method: GET
        name: getagent
        description: View an agent
        call: freshservice-agents.getagent
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: freshservice-agents-mcp
    port: 9090
    transport: http
    description: MCP adapter for Freshworks Freshservice API — Agents. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-all-agents
      description: List all agents
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: freshservice-agents.listagents
      with:
        email: tools.email
        state: tools.state
      outputParameters:
      - type: object
        mapping: $.
    - name: view-agent
      description: View an agent
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: freshservice-agents.getagent
      outputParameters:
      - type: object
        mapping: $.