Skip to main content
Glama

Get fiscal receipt text

get_fiscal_receipt_text
Read-only

Retrieve the printable text of a fiscal receipt by its SmartBill ID. Useful for inspecting or reprinting receipt contents without the series and number.

Instructions

Fetch the printable text of a fiscal receipt (bon fiscal) by its SmartBill id, decoded to plain text. Read-only.

Use it to inspect or reprint what was on a fiscal receipt. This needs the receipt's internal SmartBill id, not a series and number — if you only have those, this is not the right tool.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesSmartBill id of the fiscal receipt.
companyVatCodeNoIssuing company CIF. Falls back to SMARTBILL_VAT_CODE.
Behavior4/5

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

The description adds behavioral context beyond the readOnlyHint annotation by specifying that the tool is read-only ('Read-only'), fetches decoded plain text, and requires the SmartBill id (not series/number). This provides useful operational details.

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 three sentences with no waste. The first sentence states the core purpose, the second adds usage guidance, and the third clarifies the identifier. It is front-loaded and every sentence earns its place.

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?

Given the tool has only 2 parameters (one required), no output schema, and annotations providing readOnlyHint, the description adequately describes the output, input semantics, and usage. It is complete for the complexity level.

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?

The input schema already has good descriptions (100% coverage) for both parameters. The description further clarifies the 'id' parameter by emphasizing it is the internal SmartBill id, not series/number, adding value 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?

The description clearly states the verb 'Fetch', the resource 'fiscal receipt (bon fiscal)', and the identifier type 'SmartBill id'. It distinguishes from siblings by specifying that series and number are not the right input, making the purpose specific and unambiguous.

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?

The description explicitly states when to use the tool ('inspect or reprint') and when not to ('if you only have those [series and number], this is not the right tool'). It provides clear context for appropriate usage, though it does not name a specific alternative tool.

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/bogdanripa/smartbill-mcp'

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