Skip to main content
Glama

Find a direct-message space

find_direct_message
Read-onlyIdempotent

Locate an existing direct-message space with a specified Google user or email and get its space ID for sending messages. Returns 404 if no DM exists, so use spaces.setup to create one.

Instructions

Finds the EXISTING direct-message space between the authenticated user and another user, returning the space (name spaces/) to send_message into. Returns HTTP 404 when no DM with that user exists yet — this tool cannot create one (creating DMs needs spaces.setup via raw_request). The user can be a Google user id (users/123...) or an email address.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userYesThe user — "users/<id>", "users/<email>", or a bare Google user id / email address.
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotations already signal read-only, idempotent, and non-destructive behavior, and the description adds valuable context beyond those: it returns HTTP 404 when no DM exists, it cannot create DMs, and it accepts multiple user identifier formats. This gives an agent accurate expectations about failure modes and limitations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences with no filler. The core behavior is front-loaded first, followed by the critical 404 limitation, and then the accepted input formats. Every sentence adds necessary information for correct invocation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple single-parameter tool, the description covers the return value, the error case, the creation limitation, and the accepted user identifier syntax. No output schema exists, so the inline explanation of the returned space name is sufficient for an agent to chain the result into send_message.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already fully documents the single 'user' parameter. The description repeats the accepted identity formats and adds that the user is the counterpart of the authenticated user, which is useful but not essential beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: it finds the EXISTING direct-message space between the authenticated user and another user, and clarifies it returns the space name for use with send_message. This clearly distinguishes it from siblings like get_space or search_spaces because it targets DM lookup by user.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly explains both when to use the tool (finding an existing DM space to send a message into) and when not to use it (when no DM exists, since it cannot create one). It names the alternative path — spaces.setup via raw_request — making the decision boundary clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/A1-x-Tech/mcp-google-chat'

If you have feedback or need assistance with the MCP directory API, please join our Discord server