Skip to main content
Glama
udaysrinu

ExpensifyAI

by udaysrinu

Gmail Read Statement

gmail_read_statement

Extract transactions from a Gmail statement email by reading its decoded text, enabling import into expense tracking.

Instructions

Read one statement email's decoded text (read-only). Returns id/subject/from/date/text. Extract the transactions from text, then call import_statement to review + import them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
message_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the safety burden. It explicitly says 'read-only', which is the key behavioral disclosure, and mentions 'decoded text' and the returned fields. However, it does not disclose auth requirements, rate limits, or behavior when message_id is not a statement email.

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?

Two sentences with no wasted words. The purpose is front-loaded, and the workflow instruction is placed directly after the return-value list. Every sentence earns its place.

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

Completeness4/5

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

Output schema exists, so return structure is covered. The description adds the critical workflow step of calling import_statement. It is slightly incomplete in not mentioning the prerequisite step of obtaining message_id from gmail_find_statements or handling non-statement emails, but it is otherwise sufficient for a simple read operation.

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 description coverage is 0%, so the description must compensate. It implies that message_id identifies the email to read, but it never explicitly defines the parameter or says where the ID comes from (e.g., a prior gmail_find_statements result). The parameter name is self-explanatory, but the origin is left to inference.

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 ('Read'), a specific resource ('one statement email's decoded text'), and explicitly marks the operation read-only. It also names the follow-up tool (import_statement), and the phrase 'one statement email' distinguishes it from the search-oriented sibling gmail_find_statements.

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

Usage Guidelines4/5

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

Gives clear workflow context: extract transactions from the returned text, then call import_statement to review and import them. It does not explicitly list when not to use it or name alternatives, but the workflow instruction strongly implies the intended usage chain.

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