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.5

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.5
File Size Uploaded
utcp_gql-1.1.5.tar.gz 14.8 kB Details

Built distribution (wheel)

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

Total release size: 26.5 kB

Release files / utcp_gql-1.1.5.tar.gz

Download URL utcp_gql-1.1.5.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d64336354985c4ce8554821023809c14e3cbe9631f9e49f80ccd0d38550d388b
BLAKE2b-256 checksum
How to use checksums
9c9fec604baa98aacde7b3eb089ae5c91d02c086d27e3d043399f5b195905764
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

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

Download URL utcp_gql-1.1.5-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
645f240038b6de7519edc77d2a44064f72d6195b80f1b1a9b0b61f8c9b8f1d75
BLAKE2b-256 checksum
How to use checksums
856564aff1beaa66385efc230f5811fa0bc7aef271febd5fc588c7bf8d08b29e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release history Release notifications | RSS feed

1.1.6

2 release files

This release

1.1.5 This release

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