Skip to main content
Glama

aanet_get_messages

Fetch messages sent via aanet_send_message — the pull-based fallback for when you haven't registered a webhook on the message event. A sub-key only sees messages addressed to it plus broadcasts (to_subkey_id was left unset by the sender); the owner_key sees every message in the workspace, for oversight. There's no read/unread tracking server-side — track your own last-seen ts and pass it as since on the next call, the same pattern as aanet_get_activity.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum messages to return, oldest first, up to 500.
sinceNoISO timestamp — the ts of the last message you already saw, to fetch only what's new.
topicNoFilter to messages sent with this exact topic. Omit for all topics.
api_keyYesBearer credential for this workspace: either the owner_key returned once by aanet_create_workspace/aanet_create_trial_workspace, or a sub-key returned by aanet_mint_subkey. Sent under the hood as `Authorization: Bearer <api_key>`. Owner-only tools reject a sub-key with a 403.
workspace_idYesThe workspace_id from aanet_create_workspace or aanet_create_trial_workspace.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / api_key / description
      Added value: +"Bearer credential for this workspace: either the owner_key returned once by aanet_create_workspace/aanet_create_trial_workspace, or a sub-key returned by aanet_mint_subkey. Sent under the hood as `Authorization: Bearer <api_key>`. Owner-only tools reject a sub-key with a 403."
    • addedInput schema / properties / limit / description
      Added value: +"Maximum messages to return, oldest first, up to 500."
    • addedInput schema / properties / limit / exclusiveMinimum
      Added value: +0
    • addedInput schema / properties / limit / maximum
      Added value: +500
    • addedInput schema / properties / since / description
      Added value: +"ISO timestamp — the ts of the last message you already saw, to fetch only what's new."
    • addedInput schema / properties / topic / description
      Added value: +"Filter to messages sent with this exact topic. Omit for all topics."
    • addedInput schema / properties / workspace_id / description
      Added value: +"The workspace_id from aanet_create_workspace or aanet_create_trial_workspace."
  2. Added

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses the lack of read/unread tracking server-side and instructs the agent to track its own last-seen timestamp, which is critical behavioral information. It also explains message visibility scoping (sub-key vs owner_key) and the pull-based nature. While it doesn't mention rate limits or explicit read-only status, the behavior is sufficiently covered for an agent to anticipate side effects.

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?

The description is information-dense but every sentence contributes meaning: the core function, the fallback context, visibility rules, and the tracking idiom. It is front-loaded with what the tool does, then adds necessary context. No filler or redundancy, and the structure flows logically from purpose to usage to caveats.

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?

The description covers the essential operational aspects: when to use, visibility semantics, and the lack of server-side state tracking. Since an output schema exists, the return format does not need to be explained in prose. For a message-fetching tool with visibility nuances, this description provides all the information an agent needs to call it correctly and interpret results.

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

Parameters4/5

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

Schema coverage is 100%, with detailed descriptions for each parameter. The description adds value by explaining the intended usage of `since` (track your own last-seen ts) and the auth model affecting what messages are returned, which goes beyond the schema text. It also references a sibling tool's pattern for consistency. This exceeds the baseline of 3 because it provides practical guidance not present in 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?

The description clearly states the tool fetches messages sent via aanet_send_message, positioning it as a pull-based fallback to webhooks. It explicitly contrasts with webhook registration and names the specific verb 'fetch' with a concrete resource. This is distinct from sibling tools like aanet_get_activity, so an agent can immediately understand its unique role.

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?

The description explicitly states the condition for use: 'when you haven't registered a webhook on the message event.' It also explains the alternative (webhook) and clarifies the visibility rules for sub-key vs owner_key, giving clear guidance on when to use it and what to expect. The mention of the 'same pattern as aanet_get_activity' for the `since` parameter provides cross-tool usage context.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources