
Google Chat
Available ActionsEach successful request consumes credits as outlined below.
Details
Bridge your agent to your Google Chat spaces—post updates, keep threads moving, and turn routine teamwork into quick, automated nudges that keep everyone in sync. Supports reactions, direct messaging, and posting and reading in spaces. All actions take place as the connected user.
Use Cases
Send messages to spaces, Reply in existing threads, List recent messages, Filter message history, Add or remove reactions, Retrieve space memberships, Fetch attachment metadata, Automate team notifications
Connect Your Agent In 5 Min
Watch the setup guide for your platform
Or Install Locally
STDIO connector for Claude Code, Codex, Cursor, Zed, and other LLMs that require STDIO or custom connections. This lightweight connector routes requests to https://api.agentpmt.com/mcp. All tool execution happens in the cloud and the server cannot edit any files on your computer.
npm install -g @agentpmt/mcp-routeragentpmt-setupcurl -X POST "https://api.agentpmt.com/products/purchase" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ********" \
-d '{
"product_id": "6968000436a6023a803ab753",
"parameters": {
"action": "list_spaces",
"page_size": 50
}
}'import requests
import json
url = "https://api.agentpmt.com/products/purchase"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer ********"
}
data = {
"product_id": "6968000436a6023a803ab753",
"parameters": {
"action": "list_spaces",
"page_size": 50
}
}
response = requests.post(url, headers=headers, json=data)
print(response.status_code)
print(response.json())const url = "https://api.agentpmt.com/products/purchase";
const headers = {
"Content-Type": "application/json",
"Authorization": "Bearer ********"
};
const data = {
product_id: "6968000436a6023a803ab753",
parameters: {
"action": "list_spaces",
"page_size": 50
}
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));const axios = require('axios');
const url = "https://api.agentpmt.com/products/purchase";
const headers = {
"Content-Type": "application/json",
"Authorization": "Bearer ********"
};
const data = {
product_id: "6968000436a6023a803ab753",
parameters: {
"action": "list_spaces",
"page_size": 50
}
};
axios.post(url, data, { headers })
.then(response => {
console.log(response.status);
console.log(response.data);
})
.catch(error => {
console.error("Error:", error.message);
});Login to view your API and budget keys. The example above uses placeholder values. Sign in to see personalized code with your bearer token.
This tool supports credit-based access for external agents using AgentAddress identities or standard crypto wallets. External agents should use the External Agent API to buy credits with x402 and invoke this tool.
1. Buy Credits
Purchase credits via x402 payment (500 credit minimum, 100 credits = $1).
# Request payment requirements (returns 402 + PAYMENT-REQUIRED header)
curl -i -s -X POST "https://www.agentpmt.com/api/external/credits/purchase" \
-H "Content-Type: application/json" \
-d '{ "wallet_address":"0xYOUR_WALLET", "credits": 500, "payment_method":"x402" }'
# Sign the EIP-3009 authorization, then retry with signature header
curl -s -X POST "https://www.agentpmt.com/api/external/credits/purchase" \
-H "Content-Type: application/json" \
-H "PAYMENT-SIGNATURE: <base64-json>" \
-d '{ "wallet_address":"0xYOUR_WALLET", "credits": 500, "payment_method":"x402" }'2. Create a Session Nonce (nonce used in signed balance/invoke)
curl -s -X POST "https://www.agentpmt.com/api/external/auth/session" \
-H "Content-Type: application/json" \
-d '{ "wallet_address":"0xYOUR_WALLET" }'3. Invoke This Tool
Sign the message with your wallet (EIP-191 personal-sign), then POST to the invoke endpoint.
# Sign this message (wallet MUST be lowercased):
# agentpmt-external
# wallet:0xyourwallet...
# session:<session_nonce>
# request:<request_id>
# action:invoke
# product:6968000436a6023a803ab753
# payload:<sha256(canonical_json(parameters))>
curl -s -X POST "https://www.agentpmt.com/api/external/tools/6968000436a6023a803ab753/invoke" \
-H "Content-Type: application/json" \
-d '{
"wallet_address": "0xYOUR_WALLET",
"session_nonce": "<session_nonce>",
"request_id": "invoke-uuid",
"signature": "0x<signature>",
"parameters": {
"action": "your_action",
"your_param": "value"
}
}'Credentials
Manage credentials in your dashboard.
Actions(11)
list_spaces5cr3 paramsList all Google Chat spaces the authenticated user has access to.
list_spaces5cr3 paramsList all Google Chat spaces the authenticated user has access to.
page_sizeintegerMaximum number of results per page.
50page_tokenstringPagination token from a previous response to fetch the next page.
filterstringFilter query (e.g., 'spaceType = "SPACE"').
list_members5cr4 params(1 required)List members of a specific Google Chat space.
list_members5cr4 params(1 required)List members of a specific Google Chat space.
spacerequiredstringSpace name or ID (e.g., 'spaces/AAA' or 'AAA').
page_sizeintegerMaximum number of results per page.
50page_tokenstringPagination token from a previous response.
filterstringFilter query for members.
list_messages5cr4 params(1 required)List messages in a Google Chat space in reverse chronological order (newest first). The filter parameter supports createTime and thread.name only; full-text search is not supported.
list_messages5cr4 params(1 required)List messages in a Google Chat space in reverse chronological order (newest first). The filter parameter supports createTime and thread.name only; full-text search is not supported.
spacerequiredstringSpace name or ID (e.g., 'spaces/AAA' or 'AAA').
page_sizeintegerMaximum number of results per page.
50page_tokenstringPagination token from a previous response.
filterstringFilter query. Supports createTime and thread.name only (e.g., 'createTime > "2025-01-01T00:00:00Z"').
create_message5cr4 params(1 required)Send a new message to a Google Chat space. Optionally post into an existing thread.
create_message5cr4 params(1 required)Send a new message to a Google Chat space. Optionally post into an existing thread.
spacerequiredstringSpace name or ID (e.g., 'spaces/AAA' or 'AAA').
textstringMessage text content. Required if cards_v2 is not provided.
cards_v2arrayCards v2 payload for rich card messages. Alternative to text.
thread_namestringThread resource name (e.g., 'spaces/AAA/threads/CCC') to post into an existing thread.
reply_message5cr4 params(1 required)Reply to an existing message in its thread. The thread is resolved automatically from the original message.
reply_message5cr4 params(1 required)Reply to an existing message in its thread. The thread is resolved automatically from the original message.
message_namerequiredstringMessage resource name or message ID (e.g., 'spaces/AAA/messages/BBB'). The thread is resolved from this message.
spacestringSpace name or ID, needed if message_name is a short ID rather than a full resource name.
textstringReply text content. Required if cards_v2 is not provided.
cards_v2arrayCards v2 payload for rich card replies. Alternative to text.
update_message5cr4 params(1 required)Edit an existing message. Only the fields provided (text and/or cards_v2) will be updated.
update_message5cr4 params(1 required)Edit an existing message. Only the fields provided (text and/or cards_v2) will be updated.
message_namerequiredstringMessage resource name or message ID (e.g., 'spaces/AAA/messages/BBB').
spacestringSpace name or ID, needed if message_name is a short ID.
textstringUpdated message text. Required if cards_v2 is not provided.
cards_v2arrayUpdated cards v2 payload. Alternative to text.
delete_message5cr2 params(1 required)Delete a message from a Google Chat space.
delete_message5cr2 params(1 required)Delete a message from a Google Chat space.
message_namerequiredstringMessage resource name or message ID (e.g., 'spaces/AAA/messages/BBB').
spacestringSpace name or ID, needed if message_name is a short ID.
list_reactions5cr4 params(1 required)List all emoji reactions on a message.
list_reactions5cr4 params(1 required)List all emoji reactions on a message.
message_namerequiredstringMessage resource name or message ID (e.g., 'spaces/AAA/messages/BBB').
spacestringSpace name or ID, needed if message_name is a short ID.
page_sizeintegerMaximum number of results per page.
50page_tokenstringPagination token from a previous response.
add_reaction5cr3 params(2 required)Add an emoji reaction to a message.
add_reaction5cr3 params(2 required)Add an emoji reaction to a message.
message_namerequiredstringMessage resource name or message ID (e.g., 'spaces/AAA/messages/BBB').
emoji_unicoderequiredstringUnicode emoji character to react with (e.g., '👍').
spacestringSpace name or ID, needed if message_name is a short ID.
delete_reaction5cr3 params(1 required)Remove a reaction from a message.
delete_reaction5cr3 params(1 required)Remove a reaction from a message.
reaction_namerequiredstringReaction resource name or reaction ID (e.g., 'spaces/AAA/messages/BBB/reactions/RRR').
message_namestringMessage resource name, needed if reaction_name is a short ID.
spacestringSpace name or ID, needed if both reaction_name and message_name are short IDs.
get_attachment5cr3 params(1 required)Retrieve metadata for an attachment on a message.
get_attachment5cr3 params(1 required)Retrieve metadata for an attachment on a message.
attachment_namerequiredstringAttachment resource name or attachment ID (e.g., 'spaces/AAA/messages/BBB/attachments/ATT').
message_namestringMessage resource name, needed if attachment_name is a short ID.
spacestringSpace name or ID, needed if both attachment_name and message_name are short IDs.
Usage Instructions
Usage guidance provided directly by the developer for this product.
Google Chat
Send messages, manage spaces, react to messages, and read conversation history in Google Chat.
Actions
list_spaces
Lists all Google Chat spaces the authenticated user has access to.
Required fields: none
Optional fields: page_size, page_token, filter
Example — list all spaces:
{"action": "list_spaces"}
Example — filter to group spaces only:
{"action": "list_spaces", "page_size": 10, "filter": "spaceType = \"SPACE\""}
list_members
Lists members of a specific space.
Required fields: space
Optional fields: page_size, page_token, filter
Example:
{"action": "list_members", "space": "spaces/AAA"}
list_messages
Lists messages in a space in reverse chronological order (newest first).
Required fields: space
Optional fields: page_size, page_token, filter
The filter parameter supports createTime and thread.name only. Full-text search is not supported.
Example — recent messages:
{"action": "list_messages", "space": "spaces/AAA", "page_size": 20}
Example — messages after a date:
{"action": "list_messages", "space": "spaces/AAA", "filter": "createTime > \"2025-01-01T00:00:00Z\""}
create_message
Sends a new message to a space. Optionally post into an existing thread.
Required fields: space, and one of text or cards_v2
Optional fields: thread_name
Example — simple text message:
{"action": "create_message", "space": "spaces/AAA", "text": "Hello from the agent!"}
Example — post into an existing thread:
{"action": "create_message", "space": "spaces/AAA", "text": "Continuing this thread", "thread_name": "spaces/AAA/threads/CCC"}
reply_message
Replies to an existing message in its thread. The thread is resolved automatically from the original message.
Required fields: message_name, and one of text or cards_v2
Use message_name (not thread_name) to identify the message you are replying to.
Example:
{"action": "reply_message", "message_name": "spaces/AAA/messages/BBB", "text": "Got it, thanks!"}
update_message
Edits an existing message. Only the fields you provide (text and/or cards_v2) will be updated.
Required fields: message_name, and one of text or cards_v2
Example:
{"action": "update_message", "message_name": "spaces/AAA/messages/BBB", "text": "Updated text"}
delete_message
Deletes a message.
Required fields: message_name
Example:
{"action": "delete_message", "message_name": "spaces/AAA/messages/BBB"}
list_reactions
Lists all emoji reactions on a message.
Required fields: message_name
Optional fields: page_size, page_token
Example:
{"action": "list_reactions", "message_name": "spaces/AAA/messages/BBB"}
add_reaction
Adds an emoji reaction to a message.
Required fields: message_name, emoji_unicode
Example:
{"action": "add_reaction", "message_name": "spaces/AAA/messages/BBB", "emoji_unicode": "👍"}
delete_reaction
Removes a reaction from a message.
Required fields: reaction_name
When using a short reaction ID instead of a full resource name, also provide message_name.
Example:
{"action": "delete_reaction", "reaction_name": "spaces/AAA/messages/BBB/reactions/RRR"}
get_attachment
Retrieves metadata for an attachment on a message.
Required fields: attachment_name
When using a short attachment ID instead of a full resource name, also provide message_name.
Example:
{"action": "get_attachment", "attachment_name": "spaces/AAA/messages/BBB/attachments/ATT"}
Common Workflows
Post a message and react to it:
create_messagewithspaceandtext— note the returned message nameadd_reactionwith the returnedmessage_nameandemoji_unicode
Monitor a space for recent activity:
list_messageswithspaceand afilteroncreateTime- Page through results using
page_tokenif needed
Reply to the latest message in a space:
list_messageswithspaceandpage_sizeof 1 to get the most recent messagereply_messagewith the returnedmessage_nameand your replytext
Resource Name Formats
- Space:
spaces/AAA - Message:
spaces/AAA/messages/BBB - Thread:
spaces/AAA/threads/CCC - Reaction:
spaces/AAA/messages/BBB/reactions/RRR - Attachment:
spaces/AAA/messages/BBB/attachments/ATT
Short IDs (e.g., just BBB) are accepted when paired with the parent resource (space or message_name).
Important Notes
- The
filterparameter forlist_messagessupports onlycreateTimeandthread.name. Full-text search of message content is not available. reply_messageautomatically resolves the thread from the original message — just providemessage_name.- To post into an existing thread without replying to a specific message, use
create_messagewiththread_name. cards_v2can be used as an alternative totextfor rich card messages increate_message,reply_message, andupdate_message.- Pagination: use
page_size(1-1000, default 50) andpage_tokenfrom previous responses to page through results.
About The Developer

Apoth3osis
Joined Agent Payment: August 14, 2025
We build tools that enable AI agents to excel in the mathematical realm.
Our small team develops experimental and unique solutions in the AI arena, with a strong focus on modular computing for agentic applications and custom model deployment. We have handled projects for a variety of applications across many sectors, from algorithmic trading and financial analysis, to molecular simulations and predictions, to habitat and biodiversity monitoring and wildlife conservation.





