Skip to main content

UTCP GraphQL Communication Protocol Plugin

This plugin integrates GraphQL as a UTCP 1.0 communication protocol and call template. It supports discovery via schema introspection, authenticated calls, and header handling.

Getting Started

Installation

pip install gql

Registration

import utcp_gql
utcp_gql.register()

How To Use

  • Ensure the plugin is imported and registered: import utcp_gql; utcp_gql.register().
  • Add a manual in your client config:
    {
      "name": "my_graph",
      "call_template_type": "graphql",
      "url": "https://your.graphql/endpoint",
      "operation_type": "query",
      "headers": { "x-client": "utcp" },
      "header_fields": ["x-session-id"]
    }
    
  • Call a tool:
    await client.call_tool("my_graph.someQuery", {"id": "123", "x-session-id": "abc"})
    

Notes

  • Tool names are prefixed by the manual name (e.g., my_graph.someQuery).
  • Headers merge static headers plus whitelisted dynamic fields from header_fields.
  • Supported auth: API key, Basic auth, OAuth2 (client-credentials).
  • Security: only https:// or http://localhost/http://127.0.0.1 endpoints.

For UTCP core docs, see https://github.com/universal-tool-calling-protocol/python-utcp.

Metadata

Release files for utcp-gql 1.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for utcp-gql 1.1.6
File Size Uploaded
utcp_gql-1.1.6.tar.gz 16.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for utcp-gql 1.1.6
File Interpreter ABI Platform
utcp_gql-1.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 28.4 kB

Release files / utcp_gql-1.1.6.tar.gz

Download URL utcp_gql-1.1.6.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
03dca9d6d5fb9735a36b0ca97cf377c68e03df89b6d095a55edbd7528ad6655c
BLAKE2b-256 checksum
How to use checksums
8dc760c4794803254f4e0d0a5239ae664a16e3a0aa68798dddc77b1e03ab2ac6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.13

Release files / utcp_gql-1.1.6-py3-none-any.whl

Download URL utcp_gql-1.1.6-py3-none-any.whl
Size 12.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28564ac1ab1477638752fd7893e0f22f97dfd7bda38bb12ba22299b1c3a0eb4b
BLAKE2b-256 checksum
How to use checksums
fb11355f464a2c5da261e0ac12da76ea727d05137ce3c1933abfd2aa285638dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.13

Release history Release notifications | RSS feed

This release

1.1.6 This release

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page