Skip to main content
Glama

ACTION_GET_SIM_INFO

Retrieve SIM card count, carrier names, and stored phone numbers from an Android device; requires READ_PHONE_STATE permission to read SIM details.

Instructions

读取 SIM 卡数量、运营商、号码(需 READ_PHONE_STATE 权限)。输出:sim_count, sim_carriers, sim_numbers, sim_summary, sim_success, sim_error。sim_carriers / sim_numbers 为逗号分隔;很多 SIM 卡不存本机号码,sim_numbers 常为空。。字符串参数支持 ${var} 插值;结果以变量快照 JSON 返回。

Input Schema

NameRequiredDescriptionDefault
requireNo执行后要求为 true 的变量名(如 click_success),不满足按出错处理
on_errorNo节点出错时:skip=跳过继续(默认),stop=停止整个工作流
output_varNo概要字符串存到的变量名(默认 sim_summary)
node_timeout_msNo单节点超时毫秒,0=不限;默认 30 分钟

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does well on prerequisites (READ_PHONE_STATE) and on output shape and formatting (comma-separated lists, possible empty sim_numbers, variable-snapshot JSON return), but it says nothing about failure behavior, whether a permission denial throws or returns sim_error, or interaction with the require/on_error parameters.

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

Conciseness4/5

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

Dense and front-loaded: capability, permission, outputs, then caveats. The only blemishes are a doubled full stop and a slightly cluttered inline enumeration of output fields, but no sentence is wasted.

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?

With no output schema, the description correctly compensates by listing the returned fields and their formats. Since all four input parameters are fully described in the schema, the remaining omission (error semantics when permission is missing) is minor for a read-only probe tool.

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%, so the baseline is 3; the description earns an extra point by documenting cross-cutting behavior not in the schema, namely that string parameters support ${var} interpolation and that results are persisted as a variable snapshot.

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

Purpose4/5

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

The description opens with a specific verb and resource: reading SIM count, carrier and phone number, and it enumerates the exact outputs (sim_count, sim_carriers, sim_numbers). It does not explicitly distinguish itself from nearby siblings such as ACTION_GET_DEVICE_INFO, ACTION_GET_CALL_STATE or ACTION_NETWORK_STATUS, which an agent could plausibly confuse with SIM data.

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

Usage Guidelines3/5

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

Usage context is implied by the READ_PHONE_STATE permission note and the caveat that many SIMs do not store a local number, so agents know to expect empty results. There is no explicit when-to-use or when-not-to-use guidance relative to the other device/network state tools.

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